mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibWebView: Simplify string joining in GeneratePublicSuffixData
Super minor, but gets rid of a clangd warning about the builder name already being used.
This commit is contained in:
parent
91007eb476
commit
edcdcea92d
Notes:
github-actions[bot]
2024-11-30 11:24:29 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/edcdcea92d2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2610 Reviewed-by: https://github.com/shannonbooth ✅
1 changed files with 1 additions and 3 deletions
|
@ -113,9 +113,7 @@ static constexpr auto s_public_suffixes = Array {)~~~");
|
|||
auto view = line.split_view("."sv);
|
||||
view.reverse();
|
||||
|
||||
StringBuilder builder;
|
||||
builder.join("."sv, view);
|
||||
auto val = builder.string_view();
|
||||
auto val = MUST(String::join("."sv, view));
|
||||
|
||||
generator.set("line", val);
|
||||
generator.append(R"~~~(
|
||||
|
|
Loading…
Add table
Reference in a new issue