diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-02-25 15:01:44 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-25 22:25:05 +0100 |
commit | 5eec76b441d5449feeee29e9f292a60429448ede (patch) | |
tree | 034d95f69d19fe28b6acf641c2fad48397d78809 | |
parent | 73239fdd82aac798ac8789c70348a42a611b2759 (diff) | |
download | serenity-5eec76b441d5449feeee29e9f292a60429448ede.zip |
AK: Use the same consteval condition on _short_string as its factory
This fixes the build with Apple Clang.
-rw-r--r-- | AK/String.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/String.h b/AK/String.h index de54de1e5d..c3b59d2f3b 100644 --- a/AK/String.h +++ b/AK/String.h @@ -265,7 +265,7 @@ struct Formatter<String> : Formatter<StringView> { return AK::String::from_utf8(AK::StringView(cstring, length)); } -[[nodiscard]] ALWAYS_INLINE consteval AK::String operator""_short_string(char const* cstring, size_t length) +[[nodiscard]] ALWAYS_INLINE AK_SHORT_STRING_CONSTEVAL AK::String operator""_short_string(char const* cstring, size_t length) { return AK::String::from_utf8_short_string(AK::StringView(cstring, length)); } |