diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-01-25 15:37:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-01-25 15:37:00 (GMT) |
commit | 1398517f315b2b0420972df1dc1e61294ea5f749 (patch) | |
tree | 91d5278f549d2f49a441e127215c8ca0896586b6 /Source/cmCacheManager.cxx | |
parent | 33e7bd66c09ee51edbbccfc1014813e30d80ec5f (diff) | |
download | CMake-1398517f315b2b0420972df1dc1e61294ea5f749.zip CMake-1398517f315b2b0420972df1dc1e61294ea5f749.tar.gz CMake-1398517f315b2b0420972df1dc1e61294ea5f749.tar.bz2 |
AppendProperty: convert value param to std::string
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 265941a..dc9aba1 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -648,8 +648,8 @@ void cmCacheManager::CacheEntry::AppendProperty(const std::string& prop, bool asString) { if (prop == "TYPE") { - this->Type = cmState::StringToCacheEntryType(!value.empty() ? value.c_str() - : "STRING"); + this->Type = + cmState::StringToCacheEntryType(!value.empty() ? value : "STRING"); } else if (prop == "VALUE") { if (!value.empty()) { if (!this->Value.empty() && !asString) { @@ -658,7 +658,7 @@ void cmCacheManager::CacheEntry::AppendProperty(const std::string& prop, this->Value += value; } } else { - this->Properties.AppendProperty(prop, value.c_str(), asString); + this->Properties.AppendProperty(prop, value, asString); } } |