forked from qt-creator/qt-creator
ProjectExplorer: Drop Detection argument from ToolChain constructor
This was used wildly inconsistently. Use a setter instead in circumstances where the context is reasonably clear. The assumption is that this will always be done at some time in all code paths. Use a new 'Uninitialized' value to avoid triggering the first update. Change-Id: I82c38cb9da3ccdbd8fbae8beefcbfa0e559ff794 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -100,8 +100,8 @@ static QStringList reinterpretOptions(const QStringList &args)
|
||||
return arguments;
|
||||
}
|
||||
|
||||
QnxToolChain::QnxToolChain(ToolChain::Detection d)
|
||||
: GccToolChain(Constants::QNX_TOOLCHAIN_ID, d)
|
||||
QnxToolChain::QnxToolChain()
|
||||
: GccToolChain(Constants::QNX_TOOLCHAIN_ID)
|
||||
{
|
||||
setOptionsReinterpreter(&reinterpretOptions);
|
||||
}
|
||||
@@ -223,7 +223,7 @@ QList<ProjectExplorer::ToolChain *> QnxToolChainFactory::autoDetect(
|
||||
|
||||
ToolChain *QnxToolChainFactory::restore(const QVariantMap &data)
|
||||
{
|
||||
auto tc = new QnxToolChain(ToolChain::ManualDetection);
|
||||
auto tc = new QnxToolChain;
|
||||
if (tc->fromMap(data))
|
||||
return tc;
|
||||
|
||||
@@ -238,7 +238,7 @@ bool QnxToolChainFactory::canCreate()
|
||||
|
||||
ToolChain *QnxToolChainFactory::create()
|
||||
{
|
||||
return new QnxToolChain(ToolChain::ManualDetection);
|
||||
return new QnxToolChain;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user