mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +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:
parent
73239fdd82
commit
5eec76b441
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue