From 1af7bfb3a639f70234627adc4bdbb8f1f8dc8121 Mon Sep 17 00:00:00 2001 From: DexesTTP Date: Sun, 3 Apr 2022 00:48:37 +0200 Subject: [PATCH] LibWeb: Remove unneeded iteration filter on LiveNodeList Since all items of the subtree are Nodes, the "of type" condition was always true. This triggers a warning on Lagom builds. --- Userland/Libraries/LibWeb/DOM/LiveNodeList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/DOM/LiveNodeList.cpp b/Userland/Libraries/LibWeb/DOM/LiveNodeList.cpp index c1b0604607..544f3bc244 100644 --- a/Userland/Libraries/LibWeb/DOM/LiveNodeList.cpp +++ b/Userland/Libraries/LibWeb/DOM/LiveNodeList.cpp @@ -18,7 +18,7 @@ LiveNodeList::LiveNodeList(Node& root, Function filter) NonnullRefPtrVector LiveNodeList::collection() const { NonnullRefPtrVector nodes; - m_root->for_each_in_inclusive_subtree_of_type([&](auto& node) { + m_root->for_each_in_inclusive_subtree([&](auto& node) { if (m_filter(node)) nodes.append(node);