mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-24 03:25:02 +00:00
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:
parent
ae3e0d97b5
commit
d4615c47a4
|
@ -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"~~~(
|
||||
|
|
Loading…
Reference in a new issue