diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-12-10 14:17:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-12-12 19:04:14 (GMT) |
commit | 2988abd9390c1d6876610436883d1f7bcd405d8f (patch) | |
tree | 51c6f1aa4a9bcd1171ce51ffd42b5edca48ba4df /Source/CTest | |
parent | a74e6893480e491959e9165106f199a8cd0edd57 (diff) | |
download | CMake-2988abd9390c1d6876610436883d1f7bcd405d8f.zip CMake-2988abd9390c1d6876610436883d1f7bcd405d8f.tar.gz CMake-2988abd9390c1d6876610436883d1f7bcd405d8f.tar.bz2 |
clang-tidy: apply modernize-use-bool-literals fixes
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestBuildHandler.cxx | 2 | ||||
-rw-r--r-- | Source/CTest/cmCTestSubmitHandler.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx index a455908..3bf54f0 100644 --- a/Source/CTest/cmCTestBuildHandler.cxx +++ b/Source/CTest/cmCTestBuildHandler.cxx @@ -948,7 +948,7 @@ void cmCTestBuildHandler::ProcessBuffer(const char* data, size_t length, this->BuildOutputLogSize += length; // until there are any lines left in the buffer - while (1) { + while (true) { // Find the end of line t_BuildProcessingQueueType::iterator it; for (it = queue->begin(); it != queue->end(); ++it) { diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx index 0a6bc33..79c3663 100644 --- a/Source/CTest/cmCTestSubmitHandler.cxx +++ b/Source/CTest/cmCTestSubmitHandler.cxx @@ -748,7 +748,7 @@ bool cmCTestSubmitHandler::SubmitUsingSCP(const std::string& scp_command, { if (scp_command.empty() || localprefix.empty() || files.empty() || remoteprefix.empty() || url.empty()) { - return 0; + return false; } std::vector<const char*> argv; @@ -852,7 +852,7 @@ bool cmCTestSubmitHandler::SubmitUsingCP(const std::string& localprefix, << "\tremoteprefix: " << remoteprefix << "\n" << "\tdestination: " << destination << std::endl); /* clang-format on */ - return 0; + return false; } cmCTest::SetOfStrings::const_iterator file; |