mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:04:57 +00:00
LibCompress: Let GzipDecompressor
take a MaybeOwned<Stream>
This commit is contained in:
parent
f165d2e7ec
commit
90780d9ade
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
Add a link
Reference in a new issue