summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCompress/Zlib.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-01-25 20:19:05 +0100
committerAndrew Kaster <andrewdkaster@gmail.com>2023-01-29 19:16:44 -0700
commit093cf428a3d7473f429a589f1573d9ac1c41d762 (patch)
tree7314dbfc855b44470a78756e1e41f43bdd56d083 /Userland/Libraries/LibCompress/Zlib.cpp
parent11550f582ba99d317717ef76fef23118fa226ee1 (diff)
downloadserenity-093cf428a3d7473f429a589f1573d9ac1c41d762.zip
AK: Move memory streams from `LibCore`
Diffstat (limited to 'Userland/Libraries/LibCompress/Zlib.cpp')
-rw-r--r--Userland/Libraries/LibCompress/Zlib.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCompress/Zlib.cpp b/Userland/Libraries/LibCompress/Zlib.cpp
index feab384f44..a62d0633a1 100644
--- a/Userland/Libraries/LibCompress/Zlib.cpp
+++ b/Userland/Libraries/LibCompress/Zlib.cpp
@@ -5,12 +5,12 @@
*/
#include <AK/IntegralMath.h>
+#include <AK/MemoryStream.h>
#include <AK/Span.h>
#include <AK/TypeCasts.h>
#include <AK/Types.h>
#include <LibCompress/Deflate.h>
#include <LibCompress/Zlib.h>
-#include <LibCore/MemoryStream.h>
namespace Compress {
@@ -163,7 +163,7 @@ ErrorOr<void> ZlibCompressor::finish()
ErrorOr<ByteBuffer> ZlibCompressor::compress_all(ReadonlyBytes bytes, ZlibCompressionLevel compression_level)
{
- auto output_stream = TRY(try_make<Core::Stream::AllocatingMemoryStream>());
+ auto output_stream = TRY(try_make<AllocatingMemoryStream>());
auto zlib_stream = TRY(ZlibCompressor::construct(MaybeOwned<AK::Stream>(*output_stream), compression_level));
TRY(zlib_stream->write_entire_buffer(bytes));