mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 08:15:07 +00:00
LibPDF: Avoid unnecessary HashMap copy, mark other copies
This commit is contained in:
parent
3cc98a32cf
commit
f866c80222
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