diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-01-30 11:05:12 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-08 17:44:32 +0000 |
commit | 8b2f23d0166ec9d21a70f10dadb2d7533a161079 (patch) | |
tree | 978ce57b7202bd63331635e083332b482dac71cb /Userland/Libraries/LibCompress/Deflate.cpp | |
parent | 0fee97916b5471cd42e6c00f2809476eeacc6d73 (diff) | |
download | serenity-8b2f23d0166ec9d21a70f10dadb2d7533a161079.zip |
AK: Remove the fallible constructor from `LittleEndianOutputBitStream`
Diffstat (limited to 'Userland/Libraries/LibCompress/Deflate.cpp')
-rw-r--r-- | Userland/Libraries/LibCompress/Deflate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCompress/Deflate.cpp b/Userland/Libraries/LibCompress/Deflate.cpp index 18ad215645..f6c296635f 100644 --- a/Userland/Libraries/LibCompress/Deflate.cpp +++ b/Userland/Libraries/LibCompress/Deflate.cpp @@ -449,7 +449,7 @@ ErrorOr<void> DeflateDecompressor::decode_codes(CanonicalCode& literal_code, Opt ErrorOr<NonnullOwnPtr<DeflateCompressor>> DeflateCompressor::construct(MaybeOwned<AK::Stream> stream, CompressionLevel compression_level) { - auto bit_stream = TRY(LittleEndianOutputBitStream::construct(move(stream))); + auto bit_stream = TRY(try_make<LittleEndianOutputBitStream>(move(stream))); auto deflate_compressor = TRY(adopt_nonnull_own_or_enomem(new (nothrow) DeflateCompressor(move(bit_stream), compression_level))); return deflate_compressor; } |