mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
LibCore: Use the new Handle
type for the BitStream
types
This allows us to either pass a reference, which keeps compatibility with old code, or to pass a NonnullOwnPtr, which allows us to comfortably chain streams as usual.
This commit is contained in:
parent
8b5df161af
commit
f909cfbe75
4 changed files with 33 additions and 35 deletions
|
@ -29,7 +29,7 @@ ErrorOr<size_t> BrotliDecompressionStream::CanonicalCode::read_symbol(LittleEndi
|
|||
}
|
||||
|
||||
BrotliDecompressionStream::BrotliDecompressionStream(Stream& stream)
|
||||
: m_input_stream(stream)
|
||||
: m_input_stream(Core::Stream::Handle(stream))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue