From fd066d2b585d051ce7195b96d2d546fb54fb8fac Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Tue, 22 Jul 2025 16:28:20 +0200 Subject: [PATCH] LibWeb: Update two stray "take the action for command" invocations This is the more idiomatic (although functionally equivalent) way of taking the action for any command. --- Libraries/LibWeb/Editing/Commands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibWeb/Editing/Commands.cpp b/Libraries/LibWeb/Editing/Commands.cpp index bbf7afc17ce..78ac34147db 100644 --- a/Libraries/LibWeb/Editing/Commands.cpp +++ b/Libraries/LibWeb/Editing/Commands.cpp @@ -1744,7 +1744,7 @@ bool command_insert_text_action(DOM::Document& document, String const& value) if (value.code_points().length() > 1) { // 1. For each code unit el in value, take the action for the insertText command, with value equal to el. for (auto el : value.code_points()) - command_insert_text_action(document, String::from_code_point(el)); + take_the_action_for_command(document, CommandNames::insertText, String::from_code_point(el)); // 2. Return true. return true; @@ -1756,7 +1756,7 @@ bool command_insert_text_action(DOM::Document& document, String const& value) // 5. If value is a newline (U+000A), take the action for the insertParagraph command and return true. if (value == "\n"sv) { - command_insert_paragraph_action(document, {}); + take_the_action_for_command(document, CommandNames::insertParagraph, {}); return true; }