diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-05-26 21:05:30 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-02 19:35:50 (GMT) |
commit | c6220de27605f33b2793729680c32714cd126690 (patch) | |
tree | edd5725b84c0d2ed910b9ec945d3086f5324f9aa /Source/cmCTest.cxx | |
parent | 9ca8c7a99f193179ebfc893060966c37e3efabca (diff) | |
download | CMake-c6220de27605f33b2793729680c32714cd126690.zip CMake-c6220de27605f33b2793729680c32714cd126690.tar.gz CMake-c6220de27605f33b2793729680c32714cd126690.tar.bz2 |
Use the empty() method to check for emptyness.
Apply fix-its from clang-tidy's readability-container-size-empty
checker.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index bc36c5a..6e08932 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1020,7 +1020,7 @@ int cmCTest::RunMakeCommand(const char* command, std::string& output, // First generate the command and arguments std::vector<std::string> args = cmSystemTools::ParseArguments(command); - if (args.size() < 1) { + if (args.empty()) { return false; } @@ -2525,7 +2525,7 @@ bool cmCTest::RunCommand(const char* command, std::string* stdOut, { std::vector<std::string> args = cmSystemTools::ParseArguments(command); - if (args.size() < 1) { + if (args.empty()) { return false; } |