Index: Source/core/dom/ElementData.cpp |
diff --git a/Source/core/dom/ElementData.cpp b/Source/core/dom/ElementData.cpp |
index c7c8e6cc052d95f3524ad6369da62f81d69e9623..1dc8ef8d5aa9ffd34c6c5c7a503981ee2c29cd74 100644 |
--- a/Source/core/dom/ElementData.cpp |
+++ b/Source/core/dom/ElementData.cpp |
@@ -114,10 +114,9 @@ bool ElementData::isEquivalent(const ElementData* other) const |
if (attributes.size() != otherAttributes.size()) |
return false; |
- AttributeCollection::iterator end = attributes.end(); |
- for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) { |
- const Attribute* otherAttr = otherAttributes.find(it->name()); |
- if (!otherAttr || it->value() != otherAttr->value()) |
+ for (auto it : attributes) { |
+ const Attribute* otherAttr = otherAttributes.find(it.name()); |
+ if (!otherAttr || it.value() != otherAttr->value()) |
return false; |
} |
return true; |