aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotoolsprojectmanager/configurestep.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2012-08-03 15:24:33 +0200
committerEike Ziller <[email protected]>2012-08-06 10:37:43 +0200
commit83e573f2ece5902454b19aab8ecac4f4ca4b91e5 (patch)
treeda1520aa62a5eb87d9c9e770a5ef974d77be3a7b /src/plugins/autotoolsprojectmanager/configurestep.cpp
parent7ca93f9b1e728b99a0a4d554733a1fa31e6ab4d9 (diff)
use new id comparison operators to reduce line noise and save cycles
Change-Id: I2e7d81a4efb75877901d29964df4f71314e951b4 Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/autotoolsprojectmanager/configurestep.cpp')
-rw-r--r--src/plugins/autotoolsprojectmanager/configurestep.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/autotoolsprojectmanager/configurestep.cpp b/src/plugins/autotoolsprojectmanager/configurestep.cpp
index b6bdbef72b1..fd26da4b7cc 100644
--- a/src/plugins/autotoolsprojectmanager/configurestep.cpp
+++ b/src/plugins/autotoolsprojectmanager/configurestep.cpp
@@ -74,14 +74,14 @@ QList<Core::Id> ConfigureStepFactory::availableCreationIds(BuildStepList *parent
QString ConfigureStepFactory::displayNameForId(const Core::Id id) const
{
- if (id == Core::Id(CONFIGURE_STEP_ID))
+ if (id == CONFIGURE_STEP_ID)
return tr("Configure", "Display name for AutotoolsProjectManager::ConfigureStep id.");
return QString();
}
bool ConfigureStepFactory::canCreate(BuildStepList *parent, const Core::Id id) const
{
- return canHandle(parent) && Core::Id(CONFIGURE_STEP_ID) == id;
+ return canHandle(parent) && id == CONFIGURE_STEP_ID;
}
BuildStep *ConfigureStepFactory::create(BuildStepList *parent, const Core::Id id)
@@ -121,9 +121,9 @@ BuildStep *ConfigureStepFactory::restore(BuildStepList *parent, const QVariantMa
bool ConfigureStepFactory::canHandle(BuildStepList *parent) const
{
- if (parent->target()->project()->id() != Core::Id(Constants::AUTOTOOLS_PROJECT_ID))
- return false;
- return parent->id() == Core::Id(ProjectExplorer::Constants::BUILDSTEPS_BUILD);
+ if (parent->target()->project()->id() == Constants::AUTOTOOLS_PROJECT_ID)
+ return parent->id() == ProjectExplorer::Constants::BUILDSTEPS_BUILD;
+ return false;
}
////////////////////////