| Index: Source/core/xml/XPathStep.cpp
|
| diff --git a/Source/core/xml/XPathStep.cpp b/Source/core/xml/XPathStep.cpp
|
| index 1853edc05448a28ef956cc08880b0c9dcfc668f0..9d0d7cd9a218f1ee83c666e9c5b9235a95478d1d 100644
|
| --- a/Source/core/xml/XPathStep.cpp
|
| +++ b/Source/core/xml/XPathStep.cpp
|
| @@ -384,9 +384,8 @@ void Step::nodesInAxis(EvaluationContext& evaluationContext, Node* context, Node
|
| }
|
|
|
| AttributeCollection attributes = contextElement->attributes();
|
| - AttributeCollection::iterator end = attributes.end();
|
| - for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) {
|
| - RefPtrWillBeRawPtr<Attr> attr = contextElement->ensureAttr(it->name());
|
| + for (auto& attribute : attributes) {
|
| + RefPtrWillBeRawPtr<Attr> attr = contextElement->ensureAttr(attribute.name());
|
| if (nodeMatches(evaluationContext, attr.get(), AttributeAxis, nodeTest()))
|
| nodes.append(attr.release());
|
| }
|
|
|