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

View File

@@ -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 += ".";