cmCommandArgumentsHelper: simplify boolean expression
This commit is contained in:
parent
782fcbb92e
commit
7b94a7adb3
|
@ -57,14 +57,7 @@ bool cmCommandArgument::MayFollow(const cmCommandArgument* current) const
|
||||||
if (this->ArgumentsBeforeEmpty) {
|
if (this->ArgumentsBeforeEmpty) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
return this->ArgumentsBefore.find(current) != this->ArgumentsBefore.end();
|
||||||
std::set<const cmCommandArgument*>::const_iterator argIt =
|
|
||||||
this->ArgumentsBefore.find(current);
|
|
||||||
if (argIt != this->ArgumentsBefore.end()) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmCommandArgument::KeyMatches(const std::string& key) const
|
bool cmCommandArgument::KeyMatches(const std::string& key) const
|
||||||
|
|
Loading…
Reference in New Issue