summaryrefslogtreecommitdiffstats
path: root/WebCore/xml/XPathNodeSet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/xml/XPathNodeSet.cpp')
-rw-r--r--WebCore/xml/XPathNodeSet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/xml/XPathNodeSet.cpp b/WebCore/xml/XPathNodeSet.cpp
index e29c096..ba9423e 100644
--- a/WebCore/xml/XPathNodeSet.cpp
+++ b/WebCore/xml/XPathNodeSet.cpp
@@ -162,7 +162,7 @@ void NodeSet::sort() const
// It is not possible to just assign the result to m_nodes, because some nodes may get dereferenced and destroyed.
Vector<RefPtr<Node> > sortedNodes;
- sortedNodes.reserveCapacity(nodeCount);
+ sortedNodes.reserveInitialCapacity(nodeCount);
for (unsigned i = 0; i < nodeCount; ++i)
sortedNodes.append(parentMatrix[i][0]);