summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCompress
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-12-02 19:26:49 +0100
committerLinus Groh <mail@linusgroh.de>2022-12-12 16:21:39 +0000
commitf909cfbe754f54da308cdee6bcb534d0b3eeeb46 (patch)
tree332ab0199eaa448d5a78fe29104e06089d405611 /Userland/Libraries/LibCompress
parent8b5df161af3704082909a6848e9b8ea144748a4e (diff)
downloadserenity-f909cfbe754f54da308cdee6bcb534d0b3eeeb46.zip
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.
Diffstat (limited to 'Userland/Libraries/LibCompress')
-rw-r--r--Userland/Libraries/LibCompress/Brotli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCompress/Brotli.cpp b/Userland/Libraries/LibCompress/Brotli.cpp
index 16344f0946..00d2e7c3c0 100644
--- a/Userland/Libraries/LibCompress/Brotli.cpp
+++ b/Userland/Libraries/LibCompress/Brotli.cpp
@@ -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))
{
}