mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-24 00:39:03 -05:00
use CM_NULLPTR
This commit is contained in:
committed by
Brad King
parent
b4b73f56a2
commit
1d6909a287
@@ -111,7 +111,7 @@ void cmMakefileLibraryTargetGenerator::WriteObjectLibraryRules()
|
||||
this->AppendObjectDepends(depends);
|
||||
|
||||
// Write the rule.
|
||||
this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, 0,
|
||||
this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, CM_NULLPTR,
|
||||
this->GeneratorTarget->GetName(),
|
||||
depends, commands, true);
|
||||
|
||||
@@ -346,7 +346,7 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules(
|
||||
commands, buildEcho, cmLocalUnixMakefileGenerator3::EchoLink, &progress);
|
||||
}
|
||||
|
||||
const char* forbiddenFlagVar = 0;
|
||||
const char* forbiddenFlagVar = CM_NULLPTR;
|
||||
switch (this->GeneratorTarget->GetType()) {
|
||||
case cmState::SHARED_LIBRARY:
|
||||
forbiddenFlagVar = "_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS";
|
||||
@@ -762,8 +762,8 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules(
|
||||
}
|
||||
|
||||
// Write the build rule.
|
||||
this->WriteMakeRule(*this->BuildFileStream, 0, outputs, depends, commands,
|
||||
false);
|
||||
this->WriteMakeRule(*this->BuildFileStream, CM_NULLPTR, outputs, depends,
|
||||
commands, false);
|
||||
|
||||
// Write the main driver rule to build everything in this target.
|
||||
this->WriteTargetDriverRule(targetFullPath, relink);
|
||||
|
||||
Reference in New Issue
Block a user