1
Fork 0
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:
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

@ -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));