diff options
author | DexesTTP <dexes.ttp@gmail.com> | 2022-04-03 00:48:37 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-06 14:11:03 +0200 |
commit | 1af7bfb3a639f70234627adc4bdbb8f1f8dc8121 (patch) | |
tree | 5a726dfba7da09d19ab29a6ac416d0e7a4106f0f | |
parent | 56d018f6b50744aa34bcfd075a4c6dcf9a386d84 (diff) | |
download | serenity-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.cpp | 2 |
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); |