mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Shell: Make VariableDeclarations::Variable store NonnullRefPtrs
This commit is contained in:
@@ -247,7 +247,7 @@ RefPtr<AST::Node> Parser::parse_variable_decls()
|
||||
}
|
||||
|
||||
Vector<AST::VariableDeclarations::Variable> variables;
|
||||
variables.append({ move(name_expr), move(expression) });
|
||||
variables.append({ move(name_expr), expression.release_nonnull() });
|
||||
|
||||
if (consume_while(is_whitespace).is_empty())
|
||||
return create<AST::VariableDeclarations>(move(variables));
|
||||
|
||||
Reference in New Issue
Block a user