summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDexesTTP <dexes.ttp@gmail.com>2022-04-03 00:48:37 +0200
committerLinus Groh <mail@linusgroh.de>2022-05-06 14:11:03 +0200
commit1af7bfb3a639f70234627adc4bdbb8f1f8dc8121 (patch)
tree5a726dfba7da09d19ab29a6ac416d0e7a4106f0f
parent56d018f6b50744aa34bcfd075a4c6dcf9a386d84 (diff)
downloadserenity-1af7bfb3a639f70234627adc4bdbb8f1f8dc8121.zip
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.
-rw-r--r--Userland/Libraries/LibWeb/DOM/LiveNodeList.cpp2
1 files changed, 1 insertions, 1 deletions
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<bool(Node const&)> filter)
NonnullRefPtrVector<Node> LiveNodeList::collection() const
{
NonnullRefPtrVector<Node> nodes;
- m_root->for_each_in_inclusive_subtree_of_type<Node>([&](auto& node) {
+ m_root->for_each_in_inclusive_subtree([&](auto& node) {
if (m_filter(node))
nodes.append(node);