summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2023-08-15 16:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2023-08-15 16:13:56 (GMT)
commit822203dd657b613bfe82aafb5b00d7ad4f843f92 (patch)
treeb29838d0bb5689862c0aff76665bee8e038867ee /Source/cmCacheManager.h
parentd688a213d5583098f04bedc4f5c9eafe62c854bd (diff)
downloadCMake-822203dd657b613bfe82aafb5b00d7ad4f843f92.zip
CMake-822203dd657b613bfe82aafb5b00d7ad4f843f92.tar.gz
CMake-822203dd657b613bfe82aafb5b00d7ad4f843f92.tar.bz2
Source: Rename SetProperty(nullptr_t) to RemoveProperty()
Avoid assignment to NULL semantics.
Diffstat (limited to 'Source/cmCacheManager.h')
-rw-r--r--Source/cmCacheManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h
index 5268248..ae32759 100644
--- a/Source/cmCacheManager.h
+++ b/Source/cmCacheManager.h
@@ -41,7 +41,7 @@ class cmCacheManager
bool GetPropertyAsBool(const std::string& property) const;
void SetProperty(const std::string& property, const std::string& value);
void SetProperty(const std::string& property, bool value);
- void SetProperty(const std::string& property, std::nullptr_t);
+ void RemoveProperty(const std::string& property);
void AppendProperty(const std::string& property, const std::string& value,
bool asString = false);
@@ -144,7 +144,7 @@ public:
std::string const& propName)
{
if (auto* entry = this->GetCacheEntry(key)) {
- entry->SetProperty(propName, nullptr);
+ entry->RemoveProperty(propName);
}
}