From 7b94a7adb32d1a8966628d2b194cfc5de04d7ecc Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Fri, 16 Sep 2016 23:16:54 +0200 Subject: cmCommandArgumentsHelper: simplify boolean expression --- Source/cmCommandArgumentsHelper.cxx | 9 +-------- 1 file changed, 1 insertion(+), 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_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 -- cgit v0.12