diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-14 23:31:49 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:25:24 (GMT) |
commit | 930bd4781694ea85a876c08c34a2dd8243688920 (patch) | |
tree | 399ea4dd7a803f40ea986dc58eaa12c61ab923b6 /Source/CTest/cmCTestBuildAndTestHandler.cxx | |
parent | d92887efabad6a91e221588d0dc7a0bffd91a9f7 (diff) | |
download | CMake-930bd4781694ea85a876c08c34a2dd8243688920.zip CMake-930bd4781694ea85a876c08c34a2dd8243688920.tar.gz CMake-930bd4781694ea85a876c08c34a2dd8243688920.tar.bz2 |
Replace 'foo.size() == 0' pattern with foo.empty().
Diffstat (limited to 'Source/CTest/cmCTestBuildAndTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestBuildAndTestHandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestBuildAndTestHandler.cxx b/Source/CTest/cmCTestBuildAndTestHandler.cxx index 8499846..e5d5988 100644 --- a/Source/CTest/cmCTestBuildAndTestHandler.cxx +++ b/Source/CTest/cmCTestBuildAndTestHandler.cxx @@ -211,7 +211,7 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring) static_cast<void>(captureRAII); std::ostringstream out; - if ( this->CTest->GetConfigType().size() == 0 && + if ( this->CTest->GetConfigType().empty() && this->ConfigSample.size()) { // use the config sample to set the ConfigType @@ -269,7 +269,7 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring) // do the build std::vector<std::string>::iterator tarIt; - if ( this->BuildTargets.size() == 0 ) + if (this->BuildTargets.empty()) { this->BuildTargets.push_back(""); } |