From d4615c47a4852381e3801d7da16e0cfde5f7c1cd Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 20 Oct 2023 10:41:08 -0400 Subject: [PATCH] LibWebView: Generate the Public Suffix List as a compile-time array No need for this to be a vector on the heap. --- .../CodeGenerators/LibWebView/GeneratePublicSuffixData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWebView/GeneratePublicSuffixData.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWebView/GeneratePublicSuffixData.cpp index b7e69a8626..893de3b965 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWebView/GeneratePublicSuffixData.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWebView/GeneratePublicSuffixData.cpp @@ -91,7 +91,7 @@ ErrorOr generate_implementation_file(Core::InputBufferedFile& input, Core: namespace WebView { -static Vector s_public_suffixes {)~~~"); +static constexpr auto s_public_suffixes = Array {)~~~"); Array buffer {}; @@ -110,7 +110,7 @@ static Vector s_public_suffixes {)~~~"); generator.set("line", val); generator.append(R"~~~( - {"@line@"sv},)~~~"); + "@line@"sv,)~~~"); } generator.append(R"~~~(