mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibWeb: Remove useless move from remove_node_preserving_its_descendants
This commit is contained in:
parent
e64766d54d
commit
acef5a34de
Notes:
github-actions[bot]
2025-01-10 22:39:52 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/acef5a34de0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3216
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
|
||||
* Copyright (c) 2024-2025, Jelle Raaijmakers <jelle@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -2234,7 +2234,7 @@ void remove_node_preserving_its_descendants(GC::Ref<DOM::Node> node)
|
|||
children.ensure_capacity(node->child_count());
|
||||
for (auto* child = node->first_child(); child; child = child->next_sibling())
|
||||
children.append(*child);
|
||||
split_the_parent_of_nodes(move(children));
|
||||
split_the_parent_of_nodes(children);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue