diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-11 01:06:34 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-11 01:27:46 +0100 |
commit | 80d4e830a0a95a41e3a3a6ccdc938fdfc4c7430b (patch) | |
tree | 80482418dd76af80034d5dc215db51c12ce27f67 /AK/ByteBuffer.h | |
parent | 8b1108e4858f797c9216dc8ae4a3918ad50c73b4 (diff) | |
download | serenity-80d4e830a0a95a41e3a3a6ccdc938fdfc4c7430b.zip |
Everywhere: Pass AK::ReadonlyBytes by value
Diffstat (limited to 'AK/ByteBuffer.h')
-rw-r--r-- | AK/ByteBuffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/ByteBuffer.h b/AK/ByteBuffer.h index 045c6ebfd4..416e4d0594 100644 --- a/AK/ByteBuffer.h +++ b/AK/ByteBuffer.h @@ -182,14 +182,14 @@ public: return try_ensure_capacity_slowpath(new_capacity); } - void append(ReadonlyBytes const& bytes) + void append(ReadonlyBytes bytes) { MUST(try_append(bytes)); } void append(void const* data, size_t data_size) { append({ data, data_size }); } - ErrorOr<void> try_append(ReadonlyBytes const& bytes) + ErrorOr<void> try_append(ReadonlyBytes bytes) { return try_append(bytes.data(), bytes.size()); } |