From 530aa51816e574601ab8366d1d52fbbdd427b35a Mon Sep 17 00:00:00 2001 From: DexesTTP Date: Sun, 3 Apr 2022 00:50:38 +0200 Subject: [PATCH] LibWeb: Remove a superfluous verify_cast on SVGGraphicsPaintable Since the layout_box of a SVGGraphicsPaintable is already casted to the right type, the underlying dom_node was also always of the right type. This triggers a warning on Lagom builds. --- Userland/Libraries/LibWeb/Painting/SVGGraphicsPaintable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Painting/SVGGraphicsPaintable.cpp b/Userland/Libraries/LibWeb/Painting/SVGGraphicsPaintable.cpp index 4c4f3adb12..52e5e06c79 100644 --- a/Userland/Libraries/LibWeb/Painting/SVGGraphicsPaintable.cpp +++ b/Userland/Libraries/LibWeb/Painting/SVGGraphicsPaintable.cpp @@ -25,7 +25,7 @@ void SVGGraphicsPaintable::before_children_paint(PaintContext& context, PaintPha if (phase != PaintPhase::Foreground) return; - auto& graphics_element = verify_cast(layout_box().dom_node()); + auto& graphics_element = layout_box().dom_node(); if (graphics_element.fill_color().has_value()) context.svg_context().set_fill_color(graphics_element.fill_color().value());