summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-08 16:43:46 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-08 16:45:51 (GMT)
commit60a62a91c4c67859d8e8f51aafcf0eb929edc036 (patch)
tree20fd780907a1ff2cd35df832b77ab47c380cc3c2 /Source/cmCacheManager.h
parent77f2807ce56491fab7637327564c7fb1033dadb1 (diff)
downloadCMake-60a62a91c4c67859d8e8f51aafcf0eb929edc036.zip
CMake-60a62a91c4c67859d8e8f51aafcf0eb929edc036.tar.gz
CMake-60a62a91c4c67859d8e8f51aafcf0eb929edc036.tar.bz2
cmCacheManager: Return a C string from GetValue.
This is for consistency with other CMake access interfaces such as definitions and properties which use a null value as a 'not present' value. It is source compatible with existing callers, and it returns a pointer into actual real cache entry storage.
Diffstat (limited to 'Source/cmCacheManager.h')
-rw-r--r--Source/cmCacheManager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h
index 31d302a..d2712bb 100644
--- a/Source/cmCacheManager.h
+++ b/Source/cmCacheManager.h
@@ -65,7 +65,7 @@ public:
void AppendProperty(const std::string& property, const char* value,
bool asString=false);
void SetProperty(const std::string& property, bool value);
- std::string GetValue() const { return this->GetEntry().Value; }
+ const char* GetValue() const { return this->GetEntry().Value.c_str(); }
bool GetValueAsBool() const;
void SetValue(const char*);
CacheEntryType GetType() const { return this->GetEntry().Type; }