mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
AK: Remove the fallible constructor from FixedMemoryStream
This commit is contained in:
parent
8b2f23d016
commit
220fbcaa7e
Notes:
sideshowbarker
2024-07-17 08:55:54 +09:00
Author: https://github.com/timschumi
Commit: 220fbcaa7e
Pull-request: https://github.com/SerenityOS/serenity/pull/17264
31 changed files with 185 additions and 209 deletions
|
@ -317,7 +317,7 @@ void DeflateDecompressor::close()
|
|||
|
||||
ErrorOr<ByteBuffer> DeflateDecompressor::decompress_all(ReadonlyBytes bytes)
|
||||
{
|
||||
auto memory_stream = TRY(FixedMemoryStream::construct(bytes));
|
||||
auto memory_stream = TRY(try_make<FixedMemoryStream>(bytes));
|
||||
auto deflate_stream = TRY(DeflateDecompressor::construct(move(memory_stream)));
|
||||
AllocatingMemoryStream output_stream;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue