From 68b5e6c565395b592b2e93462983163cb786fc11 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 11 Nov 2021 01:10:24 +0100 Subject: [PATCH] LibCrypto: Pass AK::Bytes by value --- Userland/Libraries/LibCrypto/Hash/HashFunction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibCrypto/Hash/HashFunction.h b/Userland/Libraries/LibCrypto/Hash/HashFunction.h index 6e6cdbf402..dedde42953 100644 --- a/Userland/Libraries/LibCrypto/Hash/HashFunction.h +++ b/Userland/Libraries/LibCrypto/Hash/HashFunction.h @@ -26,7 +26,7 @@ public: virtual void update(const u8*, size_t) = 0; - void update(const Bytes& buffer) { update(buffer.data(), buffer.size()); }; + void update(Bytes buffer) { update(buffer.data(), buffer.size()); }; void update(ReadonlyBytes buffer) { update(buffer.data(), buffer.size()); }; void update(const ByteBuffer& buffer) { update(buffer.data(), buffer.size()); }; void update(StringView string) { update((const u8*)string.characters_without_null_termination(), string.length()); };