1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:17:44 +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:
Luke Wilde 2022-07-02 18:05:26 +01:00 committed by Andreas Kling
parent 3845982d38
commit f3650d08cb

View file

@ -14,7 +14,7 @@ namespace Web::DOM {
class StaticNodeList : public NodeList { class StaticNodeList : public NodeList {
public: 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))); return adopt_ref(*new StaticNodeList(move(static_nodes)));
} }