mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
|
@ -43,8 +43,8 @@ PDFErrorOr<NonnullRefPtr<Encoding>> Encoding::from_object(Document* document, No
|
|||
|
||||
auto encoding = adopt_ref(*new Encoding());
|
||||
|
||||
encoding->m_descriptors = base_encoding->m_descriptors;
|
||||
encoding->m_name_mapping = base_encoding->m_name_mapping;
|
||||
encoding->m_descriptors = TRY(base_encoding->m_descriptors.clone());
|
||||
encoding->m_name_mapping = TRY(base_encoding->m_name_mapping.clone());
|
||||
|
||||
auto differences_array = TRY(dict->get_array(document, CommonNames::Differences));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue