summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-05 21:18:05 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-05 21:18:05 (GMT)
commit0039ffa2163665856be1e772146442f2c7418c6c (patch)
treeb9357fdea5bbe602bb34412d45bc280c5f6bbd9a /Tests
parentbfdf1322e7638687c96b323b1df20fd9c08b3044 (diff)
downloadCMake-0039ffa2163665856be1e772146442f2c7418c6c.zip
CMake-0039ffa2163665856be1e772146442f2c7418c6c.tar.gz
CMake-0039ffa2163665856be1e772146442f2c7418c6c.tar.bz2
use CM_NULLPTR
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLib/run_compile_commands.cxx3
-rw-r--r--Tests/CMakeLib/testXMLSafe.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/Tests/CMakeLib/run_compile_commands.cxx b/Tests/CMakeLib/run_compile_commands.cxx
index 529c830..0bf0a7c 100644
--- a/Tests/CMakeLib/run_compile_commands.cxx
+++ b/Tests/CMakeLib/run_compile_commands.cxx
@@ -148,7 +148,8 @@ int main()
it != end; ++it) {
std::vector<std::string> command;
cmSystemTools::ParseUnixCommandLine(it->at("command").c_str(), command);
- if (!cmSystemTools::RunSingleCommand(command, 0, 0, 0,
+ if (!cmSystemTools::RunSingleCommand(command, CM_NULLPTR, CM_NULLPTR,
+ CM_NULLPTR,
it->at("directory").c_str())) {
std::cout << "ERROR: Failed to run command \"" << command[0] << "\""
<< std::endl;
diff --git a/Tests/CMakeLib/testXMLSafe.cxx b/Tests/CMakeLib/testXMLSafe.cxx
index 356880c..c4aaf17 100644
--- a/Tests/CMakeLib/testXMLSafe.cxx
+++ b/Tests/CMakeLib/testXMLSafe.cxx
@@ -27,7 +27,7 @@ static test_pair const pairs[] = {
{ "angles <>", "angles &lt;&gt;" },
{ "ampersand &", "ampersand &amp;" },
{ "bad-byte \x80", "bad-byte [NON-UTF-8-BYTE-0x80]" },
- { 0, 0 }
+ { CM_NULLPTR, CM_NULLPTR }
};
int testXMLSafe(int /*unused*/, char* /*unused*/ [])