summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.cxx
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/cmStringCommand.cxx
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/cmStringCommand.cxx')
-rw-r--r--Source/cmStringCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx
index ddfb748..3e606d7 100644
--- a/Source/cmStringCommand.cxx
+++ b/Source/cmStringCommand.cxx
@@ -386,7 +386,7 @@ bool cmStringCommand::RegexMatchAll(std::vector<std::string> const& args)
this->SetError(e);
return false;
}
- if(output.length() > 0)
+ if(!output.empty())
{
output += ";";
}