summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestBuildAndTestHandler.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-15 22:13:44 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-18 13:25:24 (GMT)
commitaa773035b7f4a1aefd860d0b9e80f134bd4a4547 (patch)
tree3970a39971ed66dd72c07f227464ce2051f28ce2 /Source/CTest/cmCTestBuildAndTestHandler.cxx
parent64592633773004df83cdd790b9cb1838503ca854 (diff)
downloadCMake-aa773035b7f4a1aefd860d0b9e80f134bd4a4547.zip
CMake-aa773035b7f4a1aefd860d0b9e80f134bd4a4547.tar.gz
CMake-aa773035b7f4a1aefd860d0b9e80f134bd4a4547.tar.bz2
Replace !foo.size() pattern with foo.empty().
Diffstat (limited to 'Source/CTest/cmCTestBuildAndTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestBuildAndTestHandler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestBuildAndTestHandler.cxx b/Source/CTest/cmCTestBuildAndTestHandler.cxx
index e5d5988..9699d0d 100644
--- a/Source/CTest/cmCTestBuildAndTestHandler.cxx
+++ b/Source/CTest/cmCTestBuildAndTestHandler.cxx
@@ -193,7 +193,7 @@ public:
int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring)
{
// if the generator and make program are not specified then it is an error
- if (!this->BuildGenerator.size())
+ if (this->BuildGenerator.empty())
{
if(outstring)
{
@@ -329,7 +329,7 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring)
}
// if no test was specified then we are done
- if (!this->TestCommand.size())
+ if (this->TestCommand.empty())
{
return 0;
}