mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 05:39:57 -05:00
SetProperty: suppress raw pointer usage
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user