mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
use CM_NULLPTR
This commit is contained in:
committed by
Brad King
parent
b4b73f56a2
commit
1d6909a287
@@ -16,7 +16,7 @@
|
||||
|
||||
cmProcess::cmProcess()
|
||||
{
|
||||
this->Process = 0;
|
||||
this->Process = CM_NULLPTR;
|
||||
this->Timeout = 0;
|
||||
this->TotalTime = 0;
|
||||
this->ExitValue = 0;
|
||||
@@ -52,7 +52,7 @@ bool cmProcess::StartProcess()
|
||||
i != this->Arguments.end(); ++i) {
|
||||
this->ProcessArgs.push_back(i->c_str());
|
||||
}
|
||||
this->ProcessArgs.push_back(0); // null terminate the list
|
||||
this->ProcessArgs.push_back(CM_NULLPTR); // null terminate the list
|
||||
this->Process = cmsysProcess_New();
|
||||
cmsysProcess_SetCommand(this->Process, &*this->ProcessArgs.begin());
|
||||
if (!this->WorkingDirectory.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user