mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
AK: Move Handle
from LibCore
and name it MaybeOwned
The new name should make it abundantly clear what it does.
This commit is contained in:
parent
5fa590de71
commit
5f2ea31816
16 changed files with 115 additions and 92 deletions
|
@ -80,7 +80,7 @@ private:
|
|||
|
||||
class GzipCompressor final : public Core::Stream::Stream {
|
||||
public:
|
||||
GzipCompressor(Core::Stream::Handle<Core::Stream::Stream>);
|
||||
GzipCompressor(MaybeOwned<Core::Stream::Stream>);
|
||||
|
||||
virtual ErrorOr<Bytes> read(Bytes) override;
|
||||
virtual ErrorOr<size_t> write(ReadonlyBytes) override;
|
||||
|
@ -91,7 +91,7 @@ public:
|
|||
static ErrorOr<ByteBuffer> compress_all(ReadonlyBytes bytes);
|
||||
|
||||
private:
|
||||
Core::Stream::Handle<Core::Stream::Stream> m_output_stream;
|
||||
MaybeOwned<Core::Stream::Stream> m_output_stream;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue