LibJS+LibUnicode: Make static const Utf8View variables constexpr

This commit is contained in:
Idan Horowitz 2022-01-16 20:34:09 +02:00 committed by Linus Groh
parent 4774bed589
commit 877ae85017
Notes: sideshowbarker 2024-07-18 02:13:10 +09:00
2 changed files with 2 additions and 2 deletions
Meta/Lagom/Tools/CodeGenerators/LibUnicode

View file

@ -308,7 +308,7 @@ static ErrorOr<void> parse_number_system_digits(String core_supplemental_path, U
static String parse_identifiers(String pattern, StringView replacement, UnicodeLocaleData& locale_data, NumberFormat& format)
{
static Utf8View whitespace { "\u0020\u00a0\u200f"sv };
static constexpr Utf8View whitespace { "\u0020\u00a0\u200f"sv };
while (true) {
Utf8View utf8_pattern { pattern };