Index: Source/core/xml/XPathStep.cpp |
diff --git a/Source/core/xml/XPathStep.cpp b/Source/core/xml/XPathStep.cpp |
index 70f183e03f5158df43f45d0b323d8674f5b28f85..4f9d14448e4269b007e1e7cf0ad012d3f6b83623 100644 |
--- a/Source/core/xml/XPathStep.cpp |
+++ b/Source/core/xml/XPathStep.cpp |
@@ -352,7 +352,7 @@ void Step::nodesInAxis(Node* context, NodeSet& nodes) const |
unsigned attributeCount = contextElement->attributeCount(); |
for (unsigned i = 0; i < attributeCount; ++i) { |
- RefPtr<Attr> attr = contextElement->ensureAttr(contextElement->attributeItem(i)->name()); |
+ RefPtr<Attr> attr = contextElement->ensureAttr(contextElement->attributeItem(i).name()); |
if (nodeMatches(attr.get(), AttributeAxis, m_nodeTest)) |
nodes.append(attr.release()); |
} |