mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03: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
Notes:
sideshowbarker
2024-07-17 02:23:25 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/d4615c47a4 Pull-request: https://github.com/SerenityOS/serenity/pull/21515
@ -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 New Issue
Block a user