diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2017-03-17 15:33:07 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2017-03-20 10:11:09 +0000 |
commit | 42900818318fd495a16a9eb835331af7fd4e5e8e (patch) | |
tree | 3d5b0a6a45ae29871d87441353c6caeae128db3c /src/plugins/projectexplorer/deployconfiguration.cpp | |
parent | c82c742d8dfc295603fb9bc4f292fddba84375a0 (diff) | |
download | qt-creator-42900818318fd495a16a9eb835331af7fd4e5e8e.tar.gz |
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 <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/deployconfiguration.cpp')
-rw-r--r-- | src/plugins/projectexplorer/deployconfiguration.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
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 <extensionsystem/pluginmanager.h> -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<Core::Id> DefaultDeployConfigurationFactory::availableCreationIds(Target * { if (!canHandle(parent)) return QList<Core::Id>(); - return QList<Core::Id>() << Core::Id(Constants::DEFAULT_DEPLOYCONFIGURATION_ID); + return QList<Core::Id>() << 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 |