Rename the "it" local variable to "closing" in Parser.hpp
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
14b71906b7
commit
2b596e691c
|
@ -67,8 +67,8 @@ namespace Parser {
|
|||
} else {
|
||||
unsigned int parametersDistance = 0;
|
||||
if (next.toktype == LPAR) {
|
||||
const auto it = find_if(lexed.begin() + i, lexed.end(), [](const tok& token){ return token.toktype == RPAR; });
|
||||
parametersDistance = distance(lexed.begin() + i, it);
|
||||
const auto closing = find_if(lexed.begin() + i, lexed.end(), [](const tok& token){ return token.toktype == RPAR; });
|
||||
parametersDistance = distance(lexed.begin() + i, closing);
|
||||
i += parametersDistance;
|
||||
}
|
||||
if (nextAre({LCOMP, LCOMP, LBRACE})) {
|
||||
|
|
Loading…
Reference in New Issue