mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
use CM_NULLPTR
This commit is contained in:
committed by
Brad King
parent
b4b73f56a2
commit
1d6909a287
@@ -323,7 +323,7 @@ bool cmGetPropertyCommand::HandleCacheMode()
|
||||
return false;
|
||||
}
|
||||
|
||||
const char* value = 0;
|
||||
const char* value = CM_NULLPTR;
|
||||
if (this->Makefile->GetState()->GetCacheEntryValue(this->Name)) {
|
||||
value = this->Makefile->GetState()->GetCacheEntryProperty(
|
||||
this->Name, this->PropertyName);
|
||||
@@ -347,7 +347,7 @@ bool cmGetPropertyCommand::HandleInstallMode()
|
||||
std::string value;
|
||||
bool isSet = file->GetProperty(this->PropertyName, value);
|
||||
|
||||
return this->StoreResult(isSet ? value.c_str() : 0);
|
||||
return this->StoreResult(isSet ? value.c_str() : CM_NULLPTR);
|
||||
} else {
|
||||
std::ostringstream e;
|
||||
e << "given INSTALL name that could not be found or created: "
|
||||
|
||||
Reference in New Issue
Block a user