mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +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)))
|
: m_input_stream(make<LittleEndianInputBitStream>(move(stream)))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ struct Flags {
|
||||||
|
|
||||||
class GzipDecompressor final : public Stream {
|
class GzipDecompressor final : public Stream {
|
||||||
public:
|
public:
|
||||||
GzipDecompressor(NonnullOwnPtr<Stream>);
|
GzipDecompressor(MaybeOwned<Stream>);
|
||||||
~GzipDecompressor();
|
~GzipDecompressor();
|
||||||
|
|
||||||
virtual ErrorOr<Bytes> read_some(Bytes) override;
|
virtual ErrorOr<Bytes> read_some(Bytes) override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue