diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-15 21:39:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:25:25 (GMT) |
commit | f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e (patch) | |
tree | 6994c781c124755725d5ee2c6199d74744f2de57 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 86b5bdfa0874a0eb97d726fa9dc2f534e5a67c7e (diff) | |
download | CMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.zip CMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.tar.gz CMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.tar.bz2 |
Replace 'foo.length() > 0' pattern with !foo.empty().
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index d4ba89a..84b34d9 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -2297,7 +2297,7 @@ cmLocalUnixMakefileGenerator3::ConvertToQuotedOutputPath(const char* p, for(unsigned int i=1; i < components.size(); ++i) { // Only the last component can be empty to avoid double slashes. - if(components[i].length() > 0 || (i == (components.size()-1))) + if(!components[i].empty() || (i == (components.size()-1))) { if(!first) { |