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/kitinformation.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/kitinformation.cpp')
-rw-r--r-- | src/plugins/projectexplorer/kitinformation.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/kitinformation.cpp b/src/plugins/projectexplorer/kitinformation.cpp index 5f4ca64d11..30c3ad0836 100644 --- a/src/plugins/projectexplorer/kitinformation.cpp +++ b/src/plugins/projectexplorer/kitinformation.cpp @@ -46,6 +46,10 @@ namespace ProjectExplorer { +const char KITINFORMATION_ID_V1[] = "PE.Profile.ToolChain"; +const char KITINFORMATION_ID_V2[] = "PE.Profile.ToolChains"; +const char KITINFORMATION_ID_V3[] = "PE.Profile.ToolChainsV3"; + // -------------------------------------------------------------------------- // SysRootKitInformation: // -------------------------------------------------------------------------- @@ -195,8 +199,8 @@ QList<Task> ToolChainKitInformation::validate(const Kit *k) const void ToolChainKitInformation::upgrade(Kit *k) { - const Core::Id oldIdV1 = Constants::KITINFORMATION_ID_V1; - const Core::Id oldIdV2 = Constants::KITINFORMATION_ID_V2; + const Core::Id oldIdV1 = KITINFORMATION_ID_V1; + const Core::Id oldIdV2 = KITINFORMATION_ID_V2; // upgrade <=4.1 to 4.2 (keep old settings around for now) { @@ -373,7 +377,7 @@ QSet<Core::Id> ToolChainKitInformation::availableFeatures(const Kit *k) const Core::Id ToolChainKitInformation::id() { - return Constants::KITINFORMATION_ID_V3; + return KITINFORMATION_ID_V3; } ToolChain *ToolChainKitInformation::toolChain(const Kit *k, Core::Id language) |