diff options
author | Luke Wilde <lukew@serenityos.org> | 2022-07-02 18:05:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-11 22:35:08 +0200 |
commit | f3650d08cba228667327f6a63501a0d4a9473502 (patch) | |
tree | 90c7979fc00720c63d24101790d57394f8de7401 /Userland | |
parent | 3845982d3821322fcb0fde1c1bfa1e28ec1c97ff (diff) | |
download | serenity-f3650d08cba228667327f6a63501a0d4a9473502.zip |
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.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/StaticNodeList.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/StaticNodeList.h b/Userland/Libraries/LibWeb/DOM/StaticNodeList.h index 240898b93f..0ea249f685 100644 --- a/Userland/Libraries/LibWeb/DOM/StaticNodeList.h +++ b/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))); } |