diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-09-06 16:49:57 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-09-06 16:49:57 (GMT) |
commit | 46855d000fcd624d2e1ea3ce79d0e8c6d0ba614c (patch) | |
tree | bb3b8cb7cfd3a836db59c0edc842cb14adf8fe28 /Source/cmState.cxx | |
parent | f782759ed0997eb3d71e1187a829da62668ed5d2 (diff) | |
download | CMake-46855d000fcd624d2e1ea3ce79d0e8c6d0ba614c.zip CMake-46855d000fcd624d2e1ea3ce79d0e8c6d0ba614c.tar.gz CMake-46855d000fcd624d2e1ea3ce79d0e8c6d0ba614c.tar.bz2 |
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 5651594..6c27a7d 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( |