summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-16 00:12:53 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-24 18:47:17 (GMT)
commit524610f967e5289810a0d67a2942493d8f61d1dd (patch)
tree454aad5f601380dc9295296759d453653b5261ec /Source/CPack
parent0e14c7ee6375fcaa975194557523f5a1a8686a8a (diff)
downloadCMake-524610f967e5289810a0d67a2942493d8f61d1dd.zip
CMake-524610f967e5289810a0d67a2942493d8f61d1dd.tar.gz
CMake-524610f967e5289810a0d67a2942493d8f61d1dd.tar.bz2
Replace 'foo.size() == 0' pattern with foo.empty().
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackNSISGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackNSISGenerator.cxx b/Source/CPack/cmCPackNSISGenerator.cxx
index 2de2bc4..49aad97 100644
--- a/Source/CPack/cmCPackNSISGenerator.cxx
+++ b/Source/CPack/cmCPackNSISGenerator.cxx
@@ -49,7 +49,7 @@ int cmCPackNSISGenerator::PackageFiles()
// TODO: Fix nsis to force out file name
std::string nsisInFileName = this->FindTemplate("NSIS.template.in");
- if ( nsisInFileName.size() == 0 )
+ if (nsisInFileName.empty())
{
cmCPackLogger(cmCPackLog::LOG_ERROR,
"CPack error: Could not find NSIS installer template file."
@@ -58,7 +58,7 @@ int cmCPackNSISGenerator::PackageFiles()
}
std::string nsisInInstallOptions
= this->FindTemplate("NSIS.InstallOptions.ini.in");
- if ( nsisInInstallOptions.size() == 0 )
+ if (nsisInInstallOptions.empty())
{
cmCPackLogger(cmCPackLog::LOG_ERROR,
"CPack error: Could not find NSIS installer options file."