mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
LibPDF: Avoid unnecessary HashMap copy, mark other copies
This commit is contained in:
committed by
Jelle Raaijmakers
parent
3cc98a32cf
commit
f866c80222
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user