summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-01-30 11:05:43 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-08 17:44:32 +0000
commit220fbcaa7e6ed087fa266b98a454ce1c06ea8100 (patch)
treeb155b42e299728dc672d2b5ce33b520a428cfb14 /Userland/Libraries/LibPDF
parent8b2f23d0166ec9d21a70f10dadb2d7533a161079 (diff)
downloadserenity-220fbcaa7e6ed087fa266b98a454ce1c06ea8100.zip
AK: Remove the fallible constructor from `FixedMemoryStream`
Diffstat (limited to 'Userland/Libraries/LibPDF')
-rw-r--r--Userland/Libraries/LibPDF/DocumentParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibPDF/DocumentParser.cpp b/Userland/Libraries/LibPDF/DocumentParser.cpp
index 08ab129847..2b55aea802 100644
--- a/Userland/Libraries/LibPDF/DocumentParser.cpp
+++ b/Userland/Libraries/LibPDF/DocumentParser.cpp
@@ -596,7 +596,7 @@ PDFErrorOr<DocumentParser::PageOffsetHintTable> DocumentParser::parse_page_offse
PDFErrorOr<Vector<DocumentParser::PageOffsetHintTableEntry>> DocumentParser::parse_all_page_offset_hint_table_entries(PageOffsetHintTable const& hint_table, ReadonlyBytes hint_stream_bytes)
{
- auto input_stream = TRY(FixedMemoryStream::construct(hint_stream_bytes));
+ auto input_stream = TRY(try_make<FixedMemoryStream>(hint_stream_bytes));
TRY(input_stream->seek(sizeof(PageOffsetHintTable)));
LittleEndianInputBitStream bit_stream { move(input_stream) };