mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
Source: Rename SetProperty(nullptr_t) to RemoveProperty()
Avoid assignment to NULL semantics.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user