From 0bbb725bcd1479e4db46b92564d18d68fc5af11c Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 22 Jul 2025 07:29:24 -0400 Subject: [PATCH] AK: Mark a couple of methods in Utf16View.h as constexpr --- AK/Utf16View.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AK/Utf16View.h b/AK/Utf16View.h index eec2d62eba1..5bf79edbc9d 100644 --- a/AK/Utf16View.h +++ b/AK/Utf16View.h @@ -98,7 +98,7 @@ public: return m_iterator.utf16 == other.m_iterator.utf16; } - [[nodiscard]] ALWAYS_INLINE size_t length_in_code_units() + [[nodiscard]] constexpr size_t length_in_code_units() { if (has_ascii_storage()) return 1; @@ -165,7 +165,7 @@ public: Utf16String to_ascii_uppercase() const; Utf16String to_ascii_titlecase() const; - [[nodiscard]] ALWAYS_INLINE bool has_ascii_storage() const { return m_length_in_code_units >> Detail::UTF16_FLAG == 0; } + [[nodiscard]] constexpr bool has_ascii_storage() const { return m_length_in_code_units >> Detail::UTF16_FLAG == 0; } [[nodiscard]] constexpr ReadonlyBytes bytes() const {