LibCompress: Let GzipDecompressor
take a MaybeOwned<Stream>
This commit is contained in:
parent
f165d2e7ec
commit
90780d9ade
Notes:
sideshowbarker
2024-07-17 00:16:31 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/90780d9ade Pull-request: https://github.com/SerenityOS/serenity/pull/20652 Reviewed-by: https://github.com/LucasChollet ✅
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ GzipDecompressor::Member::Member(BlockHeader header, NonnullOwnPtr<DeflateDecomp
|
|||
{
|
||||
}
|
||||
|
||||
GzipDecompressor::GzipDecompressor(NonnullOwnPtr<Stream> stream)
|
||||
GzipDecompressor::GzipDecompressor(MaybeOwned<Stream> stream)
|
||||
: m_input_stream(make<LittleEndianInputBitStream>(move(stream)))
|
||||
{
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ struct Flags {
|
|||
|
||||
class GzipDecompressor final : public Stream {
|
||||
public:
|
||||
GzipDecompressor(NonnullOwnPtr<Stream>);
|
||||
GzipDecompressor(MaybeOwned<Stream>);
|
||||
~GzipDecompressor();
|
||||
|
||||
virtual ErrorOr<Bytes> read_some(Bytes) override;
|
||||
|
|
Loading…
Add table
Reference in a new issue