forked from qt-creator/qt-creator
ToolChain: Get rid of type() in favor of typeId()
Change-Id: I8fc68c266acb55a7c3e014697a7b526784914f7a Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
@@ -201,7 +201,8 @@ QStringList IosBuildStep::defaultArguments() const
|
||||
qCWarning(iosLog) << "IosBuildStep had an unknown buildType "
|
||||
<< target()->activeBuildConfiguration()->buildType();
|
||||
}
|
||||
if (tc->type() == QLatin1String("gcc") || tc->type() == QLatin1String("clang")) {
|
||||
if (tc->typeId() == ProjectExplorer::Constants::GCC_TOOLCHAIN_ID
|
||||
|| tc->typeId() == ProjectExplorer::Constants::CLANG_TOOLCHAIN_ID) {
|
||||
GccToolChain *gtc = static_cast<GccToolChain *>(tc);
|
||||
res << gtc->platformCodeGenFlags();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user