diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-14 23:06:11 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:25:24 (GMT) |
commit | d92887efabad6a91e221588d0dc7a0bffd91a9f7 (patch) | |
tree | 0436e742b7efd6071e01879b90fd71d5890d8b1c /Source/cmExtraKateGenerator.cxx | |
parent | f3e92d281682ee482b1425675b9fccd372cd01f3 (diff) | |
download | CMake-d92887efabad6a91e221588d0dc7a0bffd91a9f7.zip CMake-d92887efabad6a91e221588d0dc7a0bffd91a9f7.tar.gz CMake-d92887efabad6a91e221588d0dc7a0bffd91a9f7.tar.bz2 |
Replace 'foo.size() > 0' pattern with !foo.empty().
Diffstat (limited to 'Source/cmExtraKateGenerator.cxx')
-rw-r--r-- | Source/cmExtraKateGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExtraKateGenerator.cxx b/Source/cmExtraKateGenerator.cxx index 567542e..9645d0e 100644 --- a/Source/cmExtraKateGenerator.cxx +++ b/Source/cmExtraKateGenerator.cxx @@ -334,7 +334,7 @@ std::string cmExtraKateGenerator::GenerateProjectName(const std::string& name, std::string cmExtraKateGenerator::GetPathBasename(const std::string& path)const { std::string outputBasename = path; - while (outputBasename.size() > 0 && + while (!outputBasename.empty() && (outputBasename[outputBasename.size() - 1] == '/' || outputBasename[outputBasename.size() - 1] == '\\')) { |