summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-15 21:58:10 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-18 13:25:25 (GMT)
commitfd0c036c0c3e5e6be685e64caecdcbad4b3e744c (patch)
tree98e33d676ae86721e70d74ad2ed4c31b723e6cbe /Source/cmake.cxx
parentf09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e (diff)
downloadCMake-fd0c036c0c3e5e6be685e64caecdcbad4b3e744c.zip
CMake-fd0c036c0c3e5e6be685e64caecdcbad4b3e744c.tar.gz
CMake-fd0c036c0c3e5e6be685e64caecdcbad4b3e744c.tar.bz2
Replace 'foo.length() >= 1' pattern with !foo.empty()
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 7accec2..29d8206 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2531,7 +2531,7 @@ static bool cmakeCheckStampFile(const char* stampName)
while(cmSystemTools::GetLineFromStream(fin, dep))
{
int result;
- if(dep.length() >= 1 && dep[0] != '#' &&
+ if(!dep.empty() && dep[0] != '#' &&
(!ftc.FileTimeCompare(stampDepends.c_str(), dep.c_str(), &result)
|| result < 0))
{