瀏覽代碼

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.
Luke Wilde 3 年之前
父節點
當前提交
f3650d08cb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibWeb/DOM/StaticNodeList.h

+ 1 - 1
Userland/Libraries/LibWeb/DOM/StaticNodeList.h

@@ -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)));
     }