Replace foo.size() pattern with !foo.empty().

This commit is contained in:
Stephen Kelly
2015-01-15 23:04:33 +01:00
parent aa773035b7
commit fd7b371293
42 changed files with 114 additions and 114 deletions
+2 -2
View File
@@ -145,12 +145,12 @@ bool cmCreateTestSourceList
" },\n";
numTests++;
}
if(extraInclude.size())
if(!extraInclude.empty())
{
this->Makefile->AddDefinition("CMAKE_TESTDRIVER_EXTRA_INCLUDES",
extraInclude.c_str());
}
if(function.size())
if(!function.empty())
{
this->Makefile->AddDefinition("CMAKE_TESTDRIVER_ARGVC_FUNCTION",
function.c_str());