diff options
author | Brad King <brad.king@kitware.com> | 2016-06-03 14:45:52 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-06-03 14:45:52 (GMT) |
commit | 3d6638471a87c2d5f568097d5bda6e7021a45a38 (patch) | |
tree | 388493c0a3001b8d025faebb304491d2f7ab0601 /Source/CTest/cmCTestTestHandler.cxx | |
parent | e3f763765998b25707c364151a270e70d16e1744 (diff) | |
parent | c6220de27605f33b2793729680c32714cd126690 (diff) | |
download | CMake-3d6638471a87c2d5f568097d5bda6e7021a45a38.zip CMake-3d6638471a87c2d5f568097d5bda6e7021a45a38.tar.gz CMake-3d6638471a87c2d5f568097d5bda6e7021a45a38.tar.bz2 |
Merge topic 'size-empty'
c6220de2 Use the empty() method to check for emptyness.
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 55a6518..f461ca8 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -69,7 +69,7 @@ public: bool cmCTestSubdirCommand::InitialPass(std::vector<std::string> const& args, cmExecutionStatus&) { - if (args.size() < 1) { + if (args.empty()) { this->SetError("called with incorrect number of arguments"); return false; } @@ -150,7 +150,7 @@ public: bool cmCTestAddSubdirectoryCommand::InitialPass( std::vector<std::string> const& args, cmExecutionStatus&) { - if (args.size() < 1) { + if (args.empty()) { this->SetError("called with incorrect number of arguments"); return false; } @@ -1125,7 +1125,7 @@ void cmCTestTestHandler::AttachFiles(cmXMLWriter& xml, cmCTestTestResult* result) { if (result->Status != cmCTestTestHandler::COMPLETED && - result->Properties->AttachOnFail.size()) { + !result->Properties->AttachOnFail.empty()) { result->Properties->AttachedFiles.insert( result->Properties->AttachedFiles.end(), result->Properties->AttachOnFail.begin(), |