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:
Tobias Hunger
2015-07-07 15:24:27 +02:00
parent 3b364f70e8
commit e6d1141e1e
20 changed files with 18 additions and 71 deletions

View File

@@ -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();
}