diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-25 18:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-25 18:46:52 (GMT) |
commit | a7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e (patch) | |
tree | 91964f0266720537aae09ce0f42b8daa2107dba2 /Source/cmState.cxx | |
parent | ea54f8d44199502d6d02369ea0a2de4e9ef8c1ca (diff) | |
download | CMake-a7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e.zip CMake-a7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e.tar.gz CMake-a7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e.tar.bz2 |
cmState::GetCacheEntryProperty: return cmProp
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 6d95c7a..3f692d3 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -206,15 +206,14 @@ std::vector<std::string> cmState::GetCacheEntryPropertyList( return it.GetPropertyList(); } -const char* cmState::GetCacheEntryProperty(std::string const& key, - std::string const& propertyName) +cmProp cmState::GetCacheEntryProperty(std::string const& key, + std::string const& propertyName) { cmCacheManager::CacheIterator it = this->CacheManager->GetCacheIterator(key); if (!it.PropertyExists(propertyName)) { return nullptr; } - cmProp retVal = it.GetProperty(propertyName); - return retVal ? retVal->c_str() : nullptr; + return it.GetProperty(propertyName); } bool cmState::GetCacheEntryPropertyAsBool(std::string const& key, |