mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibPDF: Avoid unnecessary HashMap copy, mark other copies
This commit is contained in:
parent
3cc98a32cf
commit
f866c80222
Notes:
sideshowbarker
2024-07-17 00:27:16 +09:00
Author: https://github.com/BenWiederhake
Commit: f866c80222
Pull-request: https://github.com/SerenityOS/serenity/pull/18821
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue