mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-24 20:12:53 +00:00
LibJS+LibUnicode: Make static const Utf8View variables constexpr
This commit is contained in:
parent
4774bed589
commit
877ae85017
Notes:
sideshowbarker
2024-07-18 02:13:10 +09:00
Author: https://github.com/IdanHo
Commit: 877ae85017
Pull-request: https://github.com/SerenityOS/serenity/pull/11950
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
2 changed files with 2 additions and 2 deletions
Meta/Lagom/Tools/CodeGenerators/LibUnicode
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue