From dc71e1e2640b734f8bd0cdbb9a10168ca3ba7d53 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Mon, 12 Sep 2022 18:32:52 +0200 Subject: [PATCH] AK: Fix 'constexpr' attribute on non-constexpr function is_url_code_point invokes StringView::contains, which never was and cannot become constexpr. --- AK/URLParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/URLParser.cpp b/AK/URLParser.cpp index 6ec35b9be7..eeca9d23df 100644 --- a/AK/URLParser.cpp +++ b/AK/URLParser.cpp @@ -19,7 +19,7 @@ namespace AK { // NOTE: This is similar to the LibC macro EOF = -1. constexpr u32 end_of_file = 0xFFFFFFFF; -constexpr bool is_url_code_point(u32 code_point) +static bool is_url_code_point(u32 code_point) { // FIXME: [...] and code points in the range U+00A0 to U+10FFFD, inclusive, excluding surrogates and noncharacters. return is_ascii_alphanumeric(code_point) || code_point >= 0xA0 || "!$&'()*+,-./:;=?@_~"sv.contains(code_point);