From 56cabf80ded750e03c091a8c25f7c6ff8f01fc29 Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Sun, 26 Jun 2022 10:20:09 -0600 Subject: [PATCH] AK: Add `nodiscard` attribute to Base64 functions --- AK/Base64.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/AK/Base64.h b/AK/Base64.h index 9493e634e56..52396fe0578 100644 --- a/AK/Base64.h +++ b/AK/Base64.h @@ -13,14 +13,13 @@ namespace AK { -size_t calculate_base64_decoded_length(StringView); +[[nodiscard]] size_t calculate_base64_decoded_length(StringView); -size_t calculate_base64_encoded_length(ReadonlyBytes); +[[nodiscard]] size_t calculate_base64_encoded_length(ReadonlyBytes); -ErrorOr decode_base64(StringView); - -String encode_base64(ReadonlyBytes); +[[nodiscard]] ErrorOr decode_base64(StringView); +[[nodiscard]] String encode_base64(ReadonlyBytes); } using AK::decode_base64;