mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Refactor: Initialize args vector from iterators instead of copy
Signed-off-by: Alex Turbov <i.zaufi@gmail.com>
This commit is contained in:
@@ -374,12 +374,10 @@ bool cmConditionEvaluator::HandleLevel0(cmArgumentList& newArgs,
|
||||
return false;
|
||||
}
|
||||
// store the reduced args in this vector
|
||||
std::vector<cmExpandedCommandArgument> newArgs2;
|
||||
|
||||
// copy to the list structure
|
||||
auto argP1 = std::next(arg);
|
||||
cm::append(newArgs2, argP1, argClose);
|
||||
std::vector<cmExpandedCommandArgument> newArgs2{ argP1, argClose };
|
||||
newArgs2.pop_back();
|
||||
|
||||
// now recursively invoke IsTrue to handle the values inside the
|
||||
// parenthetical expression
|
||||
const auto value = this->IsTrue(newArgs2, errorString, status);
|
||||
|
||||
Reference in New Issue
Block a user