SetProperty: suppress raw pointer usage

This commit is contained in:
Marc Chevrier
2023-05-26 11:09:07 +02:00
parent a645a80040
commit aa5fed5052
22 changed files with 85 additions and 111 deletions
+5 -1
View File
@@ -615,7 +615,11 @@ static void CCONV cmSourceFileSetProperty(void* arg, const char* prop,
{
cmCPluginAPISourceFile* sf = static_cast<cmCPluginAPISourceFile*>(arg);
if (cmSourceFile* rsf = sf->RealSourceFile) {
rsf->SetProperty(prop, value);
if (value == nullptr) {
rsf->SetProperty(prop, nullptr);
} else {
rsf->SetProperty(prop, value);
}
} else if (prop) {
if (!value) {
value = "NOTFOUND";