mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:08:13 +00:00
LibIDL: Avoid unnecessary HashMap copy
This commit is contained in:
parent
31ba0a1a4c
commit
688d8febe4
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ Vector<Parameter> Parser::parse_parameters()
|
|||
bool variadic = lexer.consume_specific("..."sv);
|
||||
consume_whitespace();
|
||||
auto name = lexer.consume_until([](auto ch) { return is_ascii_space(ch) || ch == ',' || ch == ')' || ch == '='; });
|
||||
Parameter parameter = { move(type), move(name), optional, {}, extended_attributes, variadic };
|
||||
Parameter parameter = { move(type), move(name), optional, {}, move(extended_attributes), variadic };
|
||||
consume_whitespace();
|
||||
if (variadic) {
|
||||
// Variadic parameters must be last and do not have default values.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue