mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06:00
use CM_NULLPTR
This commit is contained in:
committed by
Brad King
parent
b4b73f56a2
commit
1d6909a287
@@ -38,7 +38,7 @@ bool cmUtilitySourceCommand::InitialPass(std::vector<std::string> const& args,
|
||||
|
||||
bool haveCacheValue = false;
|
||||
if (this->Makefile->IsOn("CMAKE_CROSSCOMPILING")) {
|
||||
haveCacheValue = (cacheValue != 0);
|
||||
haveCacheValue = (cacheValue != CM_NULLPTR);
|
||||
if (!haveCacheValue) {
|
||||
std::string msg = "UTILITY_SOURCE is used in cross compiling mode for ";
|
||||
msg += cacheEntry;
|
||||
@@ -50,7 +50,7 @@ bool cmUtilitySourceCommand::InitialPass(std::vector<std::string> const& args,
|
||||
} else {
|
||||
cmState* state = this->Makefile->GetState();
|
||||
haveCacheValue =
|
||||
(cacheValue && (strstr(cacheValue, "(IntDir)") == 0 ||
|
||||
(cacheValue && (strstr(cacheValue, "(IntDir)") == CM_NULLPTR ||
|
||||
(intDir && strcmp(intDir, "$(IntDir)") == 0)) &&
|
||||
(state->GetCacheMajorVersion() != 0 &&
|
||||
state->GetCacheMinorVersion() != 0));
|
||||
|
||||
Reference in New Issue
Block a user