1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:07:36 +00:00

AK: Use the same consteval condition on _short_string as its factory

This fixes the build with Apple Clang.
This commit is contained in:
Timothy Flynn 2023-02-25 15:01:44 -05:00 committed by Linus Groh
parent 73239fdd82
commit 5eec76b441

View file

@ -265,7 +265,7 @@ struct Formatter<String> : Formatter<StringView> {
return AK::String::from_utf8(AK::StringView(cstring, length)); 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)); return AK::String::from_utf8_short_string(AK::StringView(cstring, length));
} }