diff options
Diffstat (limited to 'Userland/Libraries/LibXML/DOM')
-rw-r--r-- | Userland/Libraries/LibXML/DOM/Node.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibXML/DOM/Node.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibXML/DOM/Node.cpp b/Userland/Libraries/LibXML/DOM/Node.cpp index df7ec1d297..0afb1287f0 100644 --- a/Userland/Libraries/LibXML/DOM/Node.cpp +++ b/Userland/Libraries/LibXML/DOM/Node.cpp @@ -44,7 +44,7 @@ bool Node::operator==(Node const& other) const if (element.children.size() != other_element->children.size()) return false; for (size_t i = 0; i < element.children.size(); ++i) { - if (element.children[i] != other_element->children[i]) + if (element.children[i].ptr() != other_element->children[i].ptr()) return false; } return true; diff --git a/Userland/Libraries/LibXML/DOM/Node.h b/Userland/Libraries/LibXML/DOM/Node.h index e1d153287a..48a3a6edb3 100644 --- a/Userland/Libraries/LibXML/DOM/Node.h +++ b/Userland/Libraries/LibXML/DOM/Node.h @@ -30,7 +30,7 @@ struct Node { struct Element { Name name; HashMap<Name, DeprecatedString> attributes; - NonnullOwnPtrVector<Node> children; + Vector<NonnullOwnPtr<Node>> children; }; bool operator==(Node const&) const; |