diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-15 22:04:33 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:25:24 (GMT) |
commit | fd7b37129360364531ddfeda7edb6e34ba773d00 (patch) | |
tree | 701d9b298e1030b901a507b436e162810af3b8cc /Source/cmMakeDepend.cxx | |
parent | aa773035b7f4a1aefd860d0b9e80f134bd4a4547 (diff) | |
download | CMake-fd7b37129360364531ddfeda7edb6e34ba773d00.zip CMake-fd7b37129360364531ddfeda7edb6e34ba773d00.tar.gz CMake-fd7b37129360364531ddfeda7edb6e34ba773d00.tar.bz2 |
Replace foo.size() pattern with !foo.empty().
Diffstat (limited to 'Source/cmMakeDepend.cxx')
-rw-r--r-- | Source/cmMakeDepend.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx index 54b8535..31bbb73 100644 --- a/Source/cmMakeDepend.cxx +++ b/Source/cmMakeDepend.cxx @@ -175,7 +175,7 @@ void cmMakeDepend::GenerateDependInformation(cmDependInformation* info) t != this->IncludeDirectories.end(); ++t) { std::string incpath = *t; - if (incpath.size() && incpath[incpath.size() - 1] != '/') + if (!incpath.empty() && incpath[incpath.size() - 1] != '/') { incpath = incpath + "/"; } @@ -318,7 +318,7 @@ std::string cmMakeDepend::FullPath(const char* fname, const char *extraPath) i != this->IncludeDirectories.end(); ++i) { std::string path = *i; - if (path.size() && path[path.size() - 1] != '/') + if (!path.empty() && path[path.size() - 1] != '/') { path = path + "/"; } @@ -335,7 +335,7 @@ std::string cmMakeDepend::FullPath(const char* fname, const char *extraPath) if (extraPath) { std::string path = extraPath; - if (path.size() && path[path.size() - 1] != '/') + if (!path.empty() && path[path.size() - 1] != '/') { path = path + "/"; } |