mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-25 15:49:08 -05:00
Source: Avoid comparing pointers to nullptr
This commit is contained in:
@@ -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")
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user