mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
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.
This commit is contained in:
parent
56d018f6b5
commit
1af7bfb3a6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue