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:
parent
9e1df152d9
commit
13641693cb
2 changed files with 4 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue