mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
LibWeb: Allow creating a StaticNodeList without an r-value Vector
It must accept taking a copy for DocumentFragment mutation records and empty vectors created in-place.
This commit is contained in:
parent
3845982d38
commit
f3650d08cb
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ namespace Web::DOM {
|
|||
|
||||
class StaticNodeList : public NodeList {
|
||||
public:
|
||||
static NonnullRefPtr<NodeList> create(NonnullRefPtrVector<Node>&& static_nodes)
|
||||
static NonnullRefPtr<NodeList> create(NonnullRefPtrVector<Node> static_nodes)
|
||||
{
|
||||
return adopt_ref(*new StaticNodeList(move(static_nodes)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue