diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-06-03 07:19:58 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-06-08 10:25:35 (GMT) |
commit | 1b945f95bafc9a795b092904f7c6bd84dad940e8 (patch) | |
tree | 590ce44102cf9db8581d1f4eb99678f80a5638c4 /Source/cmPropertyMap.cxx | |
parent | e0a8ff31480df672e42e2382e8ed7f33ea65afb4 (diff) | |
download | CMake-1b945f95bafc9a795b092904f7c6bd84dad940e8.zip CMake-1b945f95bafc9a795b092904f7c6bd84dad940e8.tar.gz CMake-1b945f95bafc9a795b092904f7c6bd84dad940e8.tar.bz2 |
cmPropertyMap: Add RemoveProperty method
The new `cmPropertyMap::RemoveProperty` allows to remove a property from the
map.
Diffstat (limited to 'Source/cmPropertyMap.cxx')
-rw-r--r-- | Source/cmPropertyMap.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmPropertyMap.cxx b/Source/cmPropertyMap.cxx index 0874977..64bceb5 100644 --- a/Source/cmPropertyMap.cxx +++ b/Source/cmPropertyMap.cxx @@ -36,6 +36,11 @@ void cmPropertyMap::AppendProperty(const std::string& name, const char* value, } } +void cmPropertyMap::RemoveProperty(const std::string& name) +{ + Map_.erase(name); +} + const char* cmPropertyMap::GetPropertyValue(const std::string& name) const { { |