forked from qt-creator/qt-creator
Fixed a typo in foreach parsing, which stored the initializer in the
expression, which subsequently got overwritten by the (real) expression.
This commit is contained in:
@@ -2153,7 +2153,7 @@ bool Parser::parseForeachStatement(StatementAST *&node)
|
||||
|
||||
blockErrors(blocked);
|
||||
rewind(startOfTypeSpecifier);
|
||||
parseAssignmentExpression(ast->expression);
|
||||
parseAssignmentExpression(ast->initializer);
|
||||
}
|
||||
|
||||
blockErrors(blocked);
|
||||
|
Reference in New Issue
Block a user