diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-15 21:39:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:25:25 (GMT) |
commit | f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e (patch) | |
tree | 6994c781c124755725d5ee2c6199d74744f2de57 /Source/CPack | |
parent | 86b5bdfa0874a0eb97d726fa9dc2f534e5a67c7e (diff) | |
download | CMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.zip CMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.tar.gz CMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.tar.bz2 |
Replace 'foo.length() > 0' pattern with !foo.empty().
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index b7ef090..f21fcf6 100644 --- a/Source/CPack/cmCPackGenerator.cxx +++ b/Source/CPack/cmCPackGenerator.cxx @@ -926,7 +926,7 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects( } if (NULL !=mf->GetDefinition("CPACK_ABSOLUTE_DESTINATION_FILES")) { - if (absoluteDestFiles.length()>0) { + if (!absoluteDestFiles.empty()) { absoluteDestFiles +=";"; } absoluteDestFiles += @@ -1356,7 +1356,7 @@ int cmCPackGenerator::PrepareGroupingKind() groupingType = this->GetOption("CPACK_COMPONENTS_GROUPING"); } - if (groupingType.length()>0) + if (!groupingType.empty()) { cmCPackLogger(cmCPackLog::LOG_VERBOSE, "[" << this->Name << "]" |