mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 00:59:19 -06:00
Source: Avoid comparing pointers to nullptr
This commit is contained in:
@@ -309,7 +309,7 @@ void cmDependsJavaParserHelper::Error(const char* str)
|
||||
void cmDependsJavaParserHelper::UpdateCombine(const char* str1,
|
||||
const char* str2)
|
||||
{
|
||||
if (this->CurrentCombine.empty() && str1 != nullptr) {
|
||||
if (this->CurrentCombine.empty() && str1) {
|
||||
this->CurrentCombine = str1;
|
||||
}
|
||||
this->CurrentCombine += ".";
|
||||
|
||||
Reference in New Issue
Block a user