LibWebView: Generate the Public Suffix List as a compile-time array

No need for this to be a vector on the heap.
This commit is contained in:
Timothy Flynn 2023-10-20 10:41:08 -04:00 committed by Andreas Kling
parent ae3e0d97b5
commit d4615c47a4
Notes: sideshowbarker 2024-07-17 02:23:25 +09:00

View File

@ -91,7 +91,7 @@ ErrorOr<void> generate_implementation_file(Core::InputBufferedFile& input, Core:
namespace WebView {
static Vector<StringView> s_public_suffixes {)~~~");
static constexpr auto s_public_suffixes = Array {)~~~");
Array<u8, 1024> buffer {};
@ -110,7 +110,7 @@ static Vector<StringView> s_public_suffixes {)~~~");
generator.set("line", val);
generator.append(R"~~~(
{"@line@"sv},)~~~");
"@line@"sv,)~~~");
}
generator.append(R"~~~(