diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-14 23:06:11 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:25:24 (GMT) |
commit | d92887efabad6a91e221588d0dc7a0bffd91a9f7 (patch) | |
tree | 0436e742b7efd6071e01879b90fd71d5890d8b1c /Source/CTest/cmCTestBuildHandler.cxx | |
parent | f3e92d281682ee482b1425675b9fccd372cd01f3 (diff) | |
download | CMake-d92887efabad6a91e221588d0dc7a0bffd91a9f7.zip CMake-d92887efabad6a91e221588d0dc7a0bffd91a9f7.tar.gz CMake-d92887efabad6a91e221588d0dc7a0bffd91a9f7.tar.bz2 |
Replace 'foo.size() > 0' pattern with !foo.empty().
Diffstat (limited to 'Source/CTest/cmCTestBuildHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestBuildHandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx index 0c3f206..5ddc75f 100644 --- a/Source/CTest/cmCTestBuildHandler.cxx +++ b/Source/CTest/cmCTestBuildHandler.cxx @@ -702,12 +702,12 @@ void cmCTestBuildHandler::GenerateXMLLogScraped(std::ostream& os) } if ( !cm->SourceFile.empty() && cm->LineNumber >= 0 ) { - if ( cm->SourceFile.size() > 0 ) + if (!cm->SourceFile.empty()) { os << "\t\t<SourceFile>" << cm->SourceFile << "</SourceFile>" << std::endl; } - if ( cm->SourceFileTail.size() > 0 ) + if (!cm->SourceFileTail.empty()) { os << "\t\t<SourceFileTail>" << cm->SourceFileTail << "</SourceFileTail>" << std::endl; |