summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-03 14:45:52 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-06-03 14:45:52 (GMT)
commit3d6638471a87c2d5f568097d5bda6e7021a45a38 (patch)
tree388493c0a3001b8d025faebb304491d2f7ab0601 /Source/cmExtraCodeBlocksGenerator.cxx
parente3f763765998b25707c364151a270e70d16e1744 (diff)
parentc6220de27605f33b2793729680c32714cd126690 (diff)
downloadCMake-3d6638471a87c2d5f568097d5bda6e7021a45a38.zip
CMake-3d6638471a87c2d5f568097d5bda6e7021a45a38.tar.gz
CMake-3d6638471a87c2d5f568097d5bda6e7021a45a38.tar.bz2
Merge topic 'size-empty'
c6220de2 Use the empty() method to check for emptyness.
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index 40cff78..8c656b9 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -248,7 +248,7 @@ void cmExtraCodeBlocksGenerator::CreateNewProjectFile(
// We don't want paths with CMakeFiles in them
// or do we?
// In speedcrunch those where purely internal
- if (splitted.size() >= 1 &&
+ if (!splitted.empty() &&
relative.find("CMakeFiles") == std::string::npos) {
tree.InsertPath(splitted, 1, fileName);
}
@@ -729,7 +729,7 @@ std::string cmExtraCodeBlocksGenerator::BuildMakeCommand(
const std::string& makeFlags)
{
std::string command = make;
- if (makeFlags.size() > 0) {
+ if (!makeFlags.empty()) {
command += " ";
command += makeFlags;
}