Source: Avoid comparing pointers to nullptr

This commit is contained in:
Vitaly Stakhovsky
2024-08-27 09:30:00 -04:00
parent 72607d3402
commit 58da4aa47d
75 changed files with 235 additions and 249 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ struct cmDebuggerVariableEntry
}
cmDebuggerVariableEntry(std::string name, const char* value)
: Name(std::move(name))
, Value(value == nullptr ? "" : value)
, Value(value ? value : "")
, Type("string")
{
}