mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 14:50:18 +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
Notes:
sideshowbarker
2024-07-17 04:49:48 +09:00
Author: https://github.com/timschumi
Commit: 5f2ea31816
Pull-request: https://github.com/SerenityOS/serenity/pull/17173
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/alimpfard
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