From 42900818318fd495a16a9eb835331af7fd4e5e8e Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Fri, 17 Mar 2017 15:33:07 +0200 Subject: ProjectExplorer: Move consts that are used in a single file out of header + inline where used only once. Change-Id: I08c60551afde1d36a2c8d5005c1ea7e52ba0515b Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/deployconfiguration.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/plugins/projectexplorer/deployconfiguration.cpp') diff --git a/src/plugins/projectexplorer/deployconfiguration.cpp b/src/plugins/projectexplorer/deployconfiguration.cpp index 7534523b0b..119d9a057c 100644 --- a/src/plugins/projectexplorer/deployconfiguration.cpp +++ b/src/plugins/projectexplorer/deployconfiguration.cpp @@ -34,10 +34,11 @@ #include -using namespace ProjectExplorer; +namespace ProjectExplorer { const char BUILD_STEP_LIST_COUNT[] = "ProjectExplorer.BuildConfiguration.BuildStepListCount"; const char BUILD_STEP_LIST_PREFIX[] = "ProjectExplorer.BuildConfiguration.BuildStepList."; +const char DEFAULT_DEPLOYCONFIGURATION_ID[] = "ProjectExplorer.DefaultDeployConfiguration"; DeployConfiguration::DeployConfiguration(Target *target, Core::Id id) : ProjectConfiguration(target, id) @@ -204,12 +205,12 @@ QList DefaultDeployConfigurationFactory::availableCreationIds(Target * { if (!canHandle(parent)) return QList(); - return QList() << Core::Id(Constants::DEFAULT_DEPLOYCONFIGURATION_ID); + return QList() << Core::Id(DEFAULT_DEPLOYCONFIGURATION_ID); } QString DefaultDeployConfigurationFactory::displayNameForId(Core::Id id) const { - if (id == Constants::DEFAULT_DEPLOYCONFIGURATION_ID) + if (id == DEFAULT_DEPLOYCONFIGURATION_ID) //: Display name of the default deploy configuration return DeployConfigurationFactory::tr("Deploy Configuration"); return QString(); @@ -219,7 +220,7 @@ bool DefaultDeployConfigurationFactory::canCreate(Target *parent, Core::Id id) c { if (!canHandle(parent)) return false; - return id == Constants::DEFAULT_DEPLOYCONFIGURATION_ID; + return id == DEFAULT_DEPLOYCONFIGURATION_ID; } DeployConfiguration *DefaultDeployConfigurationFactory::create(Target *parent, Core::Id id) @@ -264,3 +265,5 @@ bool DefaultDeployConfigurationFactory::canHandle(Target *parent) const return false; return DeviceTypeKitInformation::deviceTypeId(parent->kit()) == Constants::DESKTOP_DEVICE_TYPE; } + +} // namespace ProjectExplorer -- cgit v1.2.1