mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-09 23:44:00 +03:00
cmCommandArgumentsHelper: simplify boolean expression
This commit is contained in:
1 parent
782fcbb92e
commit
7b94a7adb3
1 file changed
+1
-8
@@ -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
|
||||
|
||||
Reference in new issue
Block a user