summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-15 21:39:38 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-18 13:25:25 (GMT)
commitf09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e (patch)
tree6994c781c124755725d5ee2c6199d74744f2de57 /Source/CPack
parent86b5bdfa0874a0eb97d726fa9dc2f534e5a67c7e (diff)
downloadCMake-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.cxx4
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 << "]"