Source: Rename SetProperty(nullptr_t) to RemoveProperty()

Avoid assignment to NULL semantics.
This commit is contained in:
Vitaly Stakhovsky
2023-08-15 12:00:00 -04:00
parent d688a213d5
commit 822203dd65
7 changed files with 10 additions and 18 deletions
+2 -2
View File
@@ -628,8 +628,8 @@ static void CCONV cmSourceFileSetProperty(void* arg, const char* prop,
{
cmCPluginAPISourceFile* sf = static_cast<cmCPluginAPISourceFile*>(arg);
if (cmSourceFile* rsf = sf->RealSourceFile) {
if (value == nullptr) {
rsf->SetProperty(prop, nullptr);
if (!value) {
rsf->RemoveProperty(prop);
} else {
rsf->SetProperty(prop, value);
}