Commit 7b94a7ad authored by Daniel Pfeifer's avatar Daniel Pfeifer
Browse files

cmCommandArgumentsHelper: simplify boolean expression

parent 782fcbb9
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment