Index: Source/core/html/HTMLObjectElement.cpp |
diff --git a/Source/core/html/HTMLObjectElement.cpp b/Source/core/html/HTMLObjectElement.cpp |
index 224d0dd0933dd7e9362de18d76d0b29309af626f..a1ce7d51c87448929f30bfc16722256b115dfbfe 100644 |
--- a/Source/core/html/HTMLObjectElement.cpp |
+++ b/Source/core/html/HTMLObjectElement.cpp |
@@ -187,12 +187,11 @@ void HTMLObjectElement::parametersForPlugin(Vector<String>& paramNames, Vector<S |
// Turn the attributes of the <object> element into arrays, but don't override <param> values. |
AttributeCollection attributes = this->attributes(); |
- AttributeCollection::iterator end = attributes.end(); |
- for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) { |
- const AtomicString& name = it->name().localName(); |
+ for (const auto& attribute : attributes) { |
+ const AtomicString& name = attribute.name().localName(); |
if (!uniqueParamNames.contains(name.impl())) { |
paramNames.append(name.string()); |
- paramValues.append(it->value().string()); |
+ paramValues.append(attribute.value().string()); |
} |
} |