summaryrefslogtreecommitdiff
path: root/Source/cmInstallFilesCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-15 00:06:11 +0100
committerStephen Kelly <steveire@gmail.com>2015-01-18 14:25:24 +0100
commitd92887efabad6a91e221588d0dc7a0bffd91a9f7 (patch)
tree0436e742b7efd6071e01879b90fd71d5890d8b1c /Source/cmInstallFilesCommand.cxx
parentf3e92d281682ee482b1425675b9fccd372cd01f3 (diff)
downloadcmake-d92887efabad6a91e221588d0dc7a0bffd91a9f7.tar.gz
Replace 'foo.size() > 0' pattern with !foo.empty().
Diffstat (limited to 'Source/cmInstallFilesCommand.cxx')
-rw-r--r--Source/cmInstallFilesCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmInstallFilesCommand.cxx b/Source/cmInstallFilesCommand.cxx
index a007693dee..06a78e5a6b 100644
--- a/Source/cmInstallFilesCommand.cxx
+++ b/Source/cmInstallFilesCommand.cxx
@@ -80,7 +80,7 @@ void cmInstallFilesCommand::FinalPass()
{
// replace any variables
std::string temps = *s;
- if (cmSystemTools::GetFilenamePath(temps).size() > 0)
+ if (!cmSystemTools::GetFilenamePath(temps).empty())
{
testf = cmSystemTools::GetFilenamePath(temps) + "/" +
cmSystemTools::GetFilenameWithoutLastExtension(temps) + ext;