summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-09-10 13:31:48 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2018-09-10 13:31:48 (GMT)
commit13d10ee61642ab384d506fa81a991e51d90c6488 (patch)
tree3ab63ba839614280a3a9c6b5e37827b46bc24b33 /Source/cmState.cxx
parent11de1492d3d96f4527990aee212cd94c944c6f64 (diff)
downloadCMake-13d10ee61642ab384d506fa81a991e51d90c6488.zip
CMake-13d10ee61642ab384d506fa81a991e51d90c6488.tar.gz
CMake-13d10ee61642ab384d506fa81a991e51d90c6488.tar.bz2
cmState::GetInitializedCacheValue: Return as const std::string*
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index e01bf71..c8b8653 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -140,10 +140,10 @@ const char* cmState::GetCacheEntryValue(std::string const& key) const
return e->Value.c_str();
}
-const char* cmState::GetInitializedCacheValue(std::string const& key) const
+const std::string* cmState::GetInitializedCacheValue(
+ std::string const& key) const
{
- const std::string* p = this->CacheManager->GetInitializedCacheValue(key);
- return p ? p->c_str() : nullptr;
+ return this->CacheManager->GetInitializedCacheValue(key);
}
cmStateEnums::CacheEntryType cmState::GetCacheEntryType(