diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-14 23:59:13 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:25:24 (GMT) |
commit | 607e19384f19fcf8713ccf0377e0255084ede785 (patch) | |
tree | 09c5363a9c5512972da5b6c459e37018ea042e6a /Source/CTest/cmCTestTestHandler.cxx | |
parent | 930bd4781694ea85a876c08c34a2dd8243688920 (diff) | |
download | CMake-607e19384f19fcf8713ccf0377e0255084ede785.zip CMake-607e19384f19fcf8713ccf0377e0255084ede785.tar.gz CMake-607e19384f19fcf8713ccf0377e0255084ede785.tar.bz2 |
Replace 'foo.size() != 0' pattern with !foo.empty().
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index b6b0357..2896a50 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -668,7 +668,7 @@ void cmCTestTestHandler::PrintLabelSummary() for(; it != this->TestList.end(); ++it) { cmCTestTestProperties& p = *it; - if(p.Labels.size() != 0) + if(!p.Labels.empty()) { for(std::vector<std::string>::iterator l = p.Labels.begin(); l != p.Labels.end(); ++l) @@ -688,7 +688,7 @@ void cmCTestTestHandler::PrintLabelSummary() { cmCTestTestResult &result = *ri; cmCTestTestProperties& p = *result.Properties; - if(p.Labels.size() != 0) + if(!p.Labels.empty()) { for(std::vector<std::string>::iterator l = p.Labels.begin(); l != p.Labels.end(); ++l) |