1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibPDF: Use make_object<>() to make objects

No behavior change.
This commit is contained in:
Nico Weber 2023-12-18 21:31:27 -05:00 committed by Andreas Kling
parent 9e1df152d9
commit 13641693cb
2 changed files with 4 additions and 4 deletions

View file

@ -235,7 +235,7 @@ PDFErrorOr<Page> Document::get_page(u32 index)
if (maybe_resources_object.has_value())
resources = maybe_resources_object.value()->cast<DictObject>();
else
resources = adopt_ref(*new DictObject({}));
resources = make_object<DictObject>(HashMap<DeprecatedFlyString, Value> {});
RefPtr<Object> contents;
if (raw_page_object->contains(CommonNames::Contents))