Index: Source/core/html/HTMLEmbedElement.cpp |
diff --git a/Source/core/html/HTMLEmbedElement.cpp b/Source/core/html/HTMLEmbedElement.cpp |
index 7083867333d41bf1038b7ae806467460310adf8d..cba70847ccbcdc1d59d21c0055c8a542743a402e 100644 |
--- a/Source/core/html/HTMLEmbedElement.cpp |
+++ b/Source/core/html/HTMLEmbedElement.cpp |
@@ -113,10 +113,9 @@ void HTMLEmbedElement::parseAttribute(const QualifiedName& name, const AtomicStr |
void HTMLEmbedElement::parametersForPlugin(Vector<String>& paramNames, Vector<String>& paramValues) |
{ |
AttributeCollection attributes = this->attributes(); |
- AttributeCollection::iterator end = attributes.end(); |
- for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) { |
- paramNames.append(it->localName().string()); |
- paramValues.append(it->value().string()); |
+ for (const auto& attribute : attributes) { |
+ paramNames.append(attribute.localName().string()); |
+ paramValues.append(attribute.value().string()); |
} |
} |