summaryrefslogtreecommitdiffstats
path: root/Source/cmCommandArgumentsHelper.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-16 21:16:54 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-16 21:16:54 (GMT)
commit7b94a7adb32d1a8966628d2b194cfc5de04d7ecc (patch)
tree595858ac3fe55a23521b6d45cc32f1314094ef90 /Source/cmCommandArgumentsHelper.cxx
parent782fcbb92e096a28f899c89eed6fe23f29cd997c (diff)
downloadCMake-7b94a7adb32d1a8966628d2b194cfc5de04d7ecc.zip
CMake-7b94a7adb32d1a8966628d2b194cfc5de04d7ecc.tar.gz
CMake-7b94a7adb32d1a8966628d2b194cfc5de04d7ecc.tar.bz2
cmCommandArgumentsHelper: simplify boolean expression
Diffstat (limited to 'Source/cmCommandArgumentsHelper.cxx')
-rw-r--r--Source/cmCommandArgumentsHelper.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmCommandArgumentsHelper.cxx b/Source/cmCommandArgumentsHelper.cxx
index 1345bd5..b8fe365 100644
--- a/Source/cmCommandArgumentsHelper.cxx
+++ b/Source/cmCommandArgumentsHelper.cxx
@@ -57,14 +57,7 @@ bool cmCommandArgument::MayFollow(const cmCommandArgument* current) const
if (this->ArgumentsBeforeEmpty) {
return true;
}
-
- std::set<const cmCommandArgument*>::const_iterator argIt =
- this->ArgumentsBefore.find(current);
- if (argIt != this->ArgumentsBefore.end()) {
- return true;
- }
-
- return false;
+ return this->ArgumentsBefore.find(current) != this->ArgumentsBefore.end();
}
bool cmCommandArgument::KeyMatches(const std::string& key) const