1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00

LibIDL: Avoid unnecessary copies of imported paths

This commit is contained in:
Ben Wiederhake 2023-06-06 23:21:33 +02:00 committed by Andreas Kling
parent fe9e09fa3a
commit 72756f09f4

View file

@ -942,6 +942,7 @@ Interface& Parser::parse()
top_level_resolved_imports().set(this_module, &interface);
Vector<Interface&> imports;
{
HashTable<DeprecatedString> required_imported_paths;
while (lexer.consume_specific("#import")) {
consume_whitespace();
@ -956,7 +957,8 @@ Interface& Parser::parse()
}
consume_whitespace();
}
interface.required_imported_paths = required_imported_paths;
interface.required_imported_paths = move(required_imported_paths);
}
parse_non_interface_entities(true, interface);