summaryrefslogtreecommitdiffstats
path: root/Source/cmakexbuild.cxx
diff options
context:
space:
mode:
authorMatthias Maennich <matthias@maennich.net>2017-09-18 21:57:50 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-19 15:44:21 (GMT)
commita5279ae553caba7ab875ee06d2ce2d079907145d (patch)
tree06b58455c6c0e385fb5986b5aed447b7db173d90 /Source/cmakexbuild.cxx
parenta1cdf537ffb33db3a368dc4c2c3662fa27568400 (diff)
downloadCMake-a5279ae553caba7ab875ee06d2ce2d079907145d.zip
CMake-a5279ae553caba7ab875ee06d2ce2d079907145d.tar.gz
CMake-a5279ae553caba7ab875ee06d2ce2d079907145d.tar.bz2
Use C++11 nullptr (cont.)
Fix remaining occurrences of the issue addressed in commit 5962db4389 (Use C++11 nullptr, 2017-08-22) that are only showing up on macOS. Signed-off-by: Matthias Maennich <matthias@maennich.net>
Diffstat (limited to 'Source/cmakexbuild.cxx')
-rw-r--r--Source/cmakexbuild.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmakexbuild.cxx b/Source/cmakexbuild.cxx
index 72da456..20ead47 100644
--- a/Source/cmakexbuild.cxx
+++ b/Source/cmakexbuild.cxx
@@ -47,7 +47,7 @@ int RunXCode(std::vector<const char*>& argv, bool& hitbug)
}
pipe = cmSystemTools::WaitForLine(cp, line, 100, out, err);
}
- cmsysProcess_WaitForExit(cp, 0);
+ cmsysProcess_WaitForExit(cp, nullptr);
if (cmsysProcess_GetState(cp) == cmsysProcess_State_Exited) {
return cmsysProcess_GetExitValue(cp);
}
@@ -64,7 +64,7 @@ int main(int ac, char* av[])
for (int i = 1; i < ac; i++) {
argv.push_back(av[i]);
}
- argv.push_back(0);
+ argv.push_back(nullptr);
bool hitbug = true;
int ret = 0;
while (hitbug) {