From bfb87b24a3d4c7d580272bc6ea9057f7ddfbc2f7 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Mon, 9 Dec 2024 00:42:46 +0100 Subject: [PATCH] LibWeb: Use `verify_cast` in insertParagraph command No functional changes. --- Libraries/LibWeb/Editing/Commands.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/LibWeb/Editing/Commands.cpp b/Libraries/LibWeb/Editing/Commands.cpp index 0dd3ac71c02..8bb576d40b0 100644 --- a/Libraries/LibWeb/Editing/Commands.cpp +++ b/Libraries/LibWeb/Editing/Commands.cpp @@ -599,8 +599,7 @@ bool command_insert_paragraph_action(DOM::Document& document, String const&) || ((new_line_range->start_container() == new_line_range->end_container() && new_line_range->start_offset() == new_line_range->end_offset() - 1) && is(*new_line_range->start_container())); - VERIFY(is(*container)); - auto& container_element = static_cast(*container); + auto& container_element = verify_cast(*container); auto new_container_name = [&] -> FlyString { // 18. If the local name of container is "h1", "h2", "h3", "h4", "h5", or "h6", and end of line is true, let new // container name be the default single-line container name.