1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:48:12 +00:00

LibPDF: Avoid unnecessary HashMap copy, mark other copies

This commit is contained in:
Ben Wiederhake 2023-05-13 21:23:18 +02:00 committed by Jelle Raaijmakers
parent 3cc98a32cf
commit f866c80222
2 changed files with 3 additions and 3 deletions

View file

@ -432,7 +432,7 @@ PDFErrorOr<NonnullRefPtr<DictObject>> Parser::parse_dict()
return error("Expected dict to end with \">>\"");
m_reader.consume_whitespace();
return make_object<DictObject>(map);
return make_object<DictObject>(move(map));
}
PDFErrorOr<NonnullRefPtr<StreamObject>> Parser::parse_stream(NonnullRefPtr<DictObject> dict)