summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-09-06 16:49:57 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2018-09-06 16:49:57 (GMT)
commit46855d000fcd624d2e1ea3ce79d0e8c6d0ba614c (patch)
treebb3b8cb7cfd3a836db59c0edc842cb14adf8fe28 /Source/cmState.cxx
parentf782759ed0997eb3d71e1187a829da62668ed5d2 (diff)
downloadCMake-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.cxx3
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(