mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +00:00
CharacterMap: Move display name strings into the search results object
Now that we're passing the display name directly to the search results structure, let's move() the string instead of copying it.
This commit is contained in:
parent
54d89401df
commit
bd5662d6f2
Notes:
sideshowbarker
2024-07-17 20:19:08 +09:00
Author: https://github.com/trflynn89
Commit: bd5662d6f2
Pull-request: https://github.com/SerenityOS/serenity/pull/12178
3 changed files with 5 additions and 5 deletions
|
@ -21,7 +21,7 @@ static void search_and_print_results(String const& query)
|
|||
{
|
||||
outln("Searching for '{}'", query);
|
||||
u32 result_count = 0;
|
||||
for_each_character_containing(query, [&](auto code_point, auto& display_name) {
|
||||
for_each_character_containing(query, [&](auto code_point, auto display_name) {
|
||||
StringBuilder builder;
|
||||
builder.append_code_point(code_point);
|
||||
builder.append(" - ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue