summaryrefslogtreecommitdiffstats
path: root/Source/cmPropertyMap.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-01-25 15:37:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-01-25 15:37:00 (GMT)
commit1398517f315b2b0420972df1dc1e61294ea5f749 (patch)
tree91d5278f549d2f49a441e127215c8ca0896586b6 /Source/cmPropertyMap.cxx
parent33e7bd66c09ee51edbbccfc1014813e30d80ec5f (diff)
downloadCMake-1398517f315b2b0420972df1dc1e61294ea5f749.zip
CMake-1398517f315b2b0420972df1dc1e61294ea5f749.tar.gz
CMake-1398517f315b2b0420972df1dc1e61294ea5f749.tar.bz2
AppendProperty: convert value param to std::string
Diffstat (limited to 'Source/cmPropertyMap.cxx')
-rw-r--r--Source/cmPropertyMap.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmPropertyMap.cxx b/Source/cmPropertyMap.cxx
index a3d4946..d4b3552 100644
--- a/Source/cmPropertyMap.cxx
+++ b/Source/cmPropertyMap.cxx
@@ -20,11 +20,11 @@ void cmPropertyMap::SetProperty(const std::string& name, const char* value)
Map_[name] = value;
}
-void cmPropertyMap::AppendProperty(const std::string& name, const char* value,
- bool asString)
+void cmPropertyMap::AppendProperty(const std::string& name,
+ const std::string& value, bool asString)
{
// Skip if nothing to append.
- if (!value || !*value) {
+ if (value.empty()) {
return;
}