Index: Source/core/xml/XPathNodeSet.cpp |
diff --git a/Source/core/xml/XPathNodeSet.cpp b/Source/core/xml/XPathNodeSet.cpp |
index c6219947ab493e31da3ba8fc52ec1663d15575ea..fa8d2d71c61d9a4ec3be9310ead05a55c616222b 100644 |
--- a/Source/core/xml/XPathNodeSet.cpp |
+++ b/Source/core/xml/XPathNodeSet.cpp |
@@ -207,7 +207,7 @@ void NodeSet::traversalSort() const |
Vector<RefPtr<Node> > sortedNodes; |
sortedNodes.reserveInitialCapacity(nodeCount); |
- for (Node* n = findRootNode(m_nodes.first().get()); n; n = NodeTraversal::next(n)) { |
+ for (Node* n = findRootNode(m_nodes.first().get()); n; n = NodeTraversal::next(*n)) { |
if (nodes.contains(n)) |
sortedNodes.append(n); |