diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-09-06 12:49:57 -0400 |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-09-06 12:49:57 -0400 |
commit | 46855d000fcd624d2e1ea3ce79d0e8c6d0ba614c (patch) | |
tree | bb3b8cb7cfd3a836db59c0edc842cb14adf8fe28 /Source/cmState.cxx | |
parent | f782759ed0997eb3d71e1187a829da62668ed5d2 (diff) | |
download | cmake-46855d000fcd624d2e1ea3ce79d0e8c6d0ba614c.tar.gz |
cmCacheManager::GetInitializedCacheValue(): Return as const std::string*
Expose std::string type used internally instead of const char*
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 565159479c..6c27a7d547 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -142,7 +142,8 @@ const char* cmState::GetCacheEntryValue(std::string const& key) const const char* cmState::GetInitializedCacheValue(std::string const& key) const { - return this->CacheManager->GetInitializedCacheValue(key); + const std::string* p = this->CacheManager->GetInitializedCacheValue(key); + return p ? p->c_str() : nullptr; } cmStateEnums::CacheEntryType cmState::GetCacheEntryType( |