Index: Source/core/xml/parser/XMLDocumentParser.cpp |
diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp |
index 531e397b7eddf871ba1add52cc4876c270b0355e..4888be119475600b2ee1d4bc21d65cbe844ddaf5 100644 |
--- a/Source/core/xml/parser/XMLDocumentParser.cpp |
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp |
@@ -822,12 +822,11 @@ XMLDocumentParser::XMLDocumentParser(DocumentFragment* fragment, Element* parent |
for (; !elemStack.isEmpty(); elemStack.removeLast()) { |
Element* element = elemStack.last(); |
AttributeCollection attributes = element->attributes(); |
- AttributeCollection::iterator end = attributes.end(); |
- for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) { |
- if (it->localName() == xmlnsAtom) |
- m_defaultNamespaceURI = it->value(); |
- else if (it->prefix() == xmlnsAtom) |
- m_prefixToNamespaceMap.set(it->localName(), it->value()); |
+ for (auto& attribute : attributes) { |
+ if (attribute.localName() == xmlnsAtom) |
+ m_defaultNamespaceURI = attribute.value(); |
+ else if (attribute.prefix() == xmlnsAtom) |
+ m_prefixToNamespaceMap.set(attribute.localName(), attribute.value()); |
} |
} |