diff options
author | Brad King <brad.king@kitware.com> | 2019-06-12 16:45:55 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-06-12 16:46:18 (GMT) |
commit | c1580ecc13cf2dea3f047d1018e705bd34cecc53 (patch) | |
tree | b157b069e557867bcc344bb4520d2e5ab2670279 /Source/cmStateDirectory.cxx | |
parent | 1af08229a7b871ea592cdf6d2aa41e47787eb713 (diff) | |
parent | 00d265e3c812516e2a71faed4f352b36f51112e2 (diff) | |
download | CMake-c1580ecc13cf2dea3f047d1018e705bd34cecc53.zip CMake-c1580ecc13cf2dea3f047d1018e705bd34cecc53.tar.gz CMake-c1580ecc13cf2dea3f047d1018e705bd34cecc53.tar.bz2 |
Merge topic 'cmPropertyMap_unordered_map'
00d265e3c8 cmPropertyMap: Use std::unordered_map as container instead of std::map
1b945f95ba cmPropertyMap: Add RemoveProperty method
e0a8ff3148 cmPropertyMap: Use std::string as value container class
8d934d861b cmPropertyMap: Make std::map container private
026f65d284 cmPropertyMap: Add GetList method
9e64e617eb cmPropertyMap: Rename GetPropertyList method to GetKeys
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3435
Diffstat (limited to 'Source/cmStateDirectory.cxx')
-rw-r--r-- | Source/cmStateDirectory.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/cmStateDirectory.cxx b/Source/cmStateDirectory.cxx index 182d3fe..6ca1c9f 100644 --- a/Source/cmStateDirectory.cxx +++ b/Source/cmStateDirectory.cxx @@ -6,7 +6,6 @@ #include <algorithm> #include <assert.h> #include <iterator> -#include <utility> #include "cmAlgorithms.h" #include "cmProperty.h" @@ -667,12 +666,7 @@ bool cmStateDirectory::GetPropertyAsBool(const std::string& prop) const std::vector<std::string> cmStateDirectory::GetPropertyKeys() const { - std::vector<std::string> keys; - keys.reserve(this->DirectoryState->Properties.size()); - for (auto const& it : this->DirectoryState->Properties) { - keys.push_back(it.first); - } - return keys; + return this->DirectoryState->Properties.GetKeys(); } void cmStateDirectory::AddNormalTargetName(std::string const& name) |