diff options
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 955ec4f..9da0295 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -328,20 +328,18 @@ public: */ cmValue GetCacheDefinition(const std::string&) const; //! Add an entry into the cache - void AddCacheEntry(const std::string& key, const char* value, - const char* helpString, int type) - { - this->AddCacheEntry(key, - value ? cmValue(std::string(value)) : cmValue(nullptr), - helpString, type); - } void AddCacheEntry(const std::string& key, const std::string& value, - const char* helpString, int type) + const std::string& helpString, int type) { - this->AddCacheEntry(key, cmValue(value), helpString, type); + this->AddCacheEntry(key, cmValue{ value }, cmValue{ helpString }, type); } void AddCacheEntry(const std::string& key, cmValue value, - const char* helpString, int type); + const std::string& helpString, int type) + { + this->AddCacheEntry(key, value, cmValue{ helpString }, type); + } + void AddCacheEntry(const std::string& key, cmValue value, cmValue helpString, + int type); bool DoWriteGlobVerifyTarget() const; std::string const& GetGlobVerifyScript() const; |