1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

AK: Remove the fallible constructor from LittleEndianOutputBitStream

This commit is contained in:
Tim Schumacher 2023-01-30 11:05:12 +01:00 committed by Linus Groh
parent 0fee97916b
commit 8b2f23d016
3 changed files with 13 additions and 18 deletions

View file

@ -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;
}