Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(888)

Unified Diff: Source/core/html/HTMLEmbedElement.cpp

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use nullptr Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLEmbedElement.cpp
diff --git a/Source/core/html/HTMLEmbedElement.cpp b/Source/core/html/HTMLEmbedElement.cpp
index 7083867333d41bf1038b7ae806467460310adf8d..20c268111b4c816c67f57e96732eb5a677e00f5c 100644
--- a/Source/core/html/HTMLEmbedElement.cpp
+++ b/Source/core/html/HTMLEmbedElement.cpp
@@ -60,7 +60,7 @@ static inline RenderPart* findPartRenderer(const Node* n)
if (n && n->renderer() && n->renderer()->isRenderPart())
return toRenderPart(n->renderer());
- return 0;
+ return nullptr;
}
RenderPart* HTMLEmbedElement::existingRenderPart() const
@@ -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 Attribute& attribute : attributes) {
+ paramNames.append(attribute.localName().string());
+ paramValues.append(attribute.value().string());
}
}

Powered by Google App Engine
This is Rietveld 408576698