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

Unified Diff: Source/core/html/parser/HTMLMetaCharsetParser.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/parser/HTMLMetaCharsetParser.cpp
diff --git a/Source/core/html/parser/HTMLMetaCharsetParser.cpp b/Source/core/html/parser/HTMLMetaCharsetParser.cpp
index 26de6900178058e80b9795a01a0e79437088e82d..ffe4cd867bc369e9a83f4cc8270cda86ab27424b 100644
--- a/Source/core/html/parser/HTMLMetaCharsetParser.cpp
+++ b/Source/core/html/parser/HTMLMetaCharsetParser.cpp
@@ -55,9 +55,9 @@ bool HTMLMetaCharsetParser::processMeta()
{
const HTMLToken::AttributeList& tokenAttributes = m_token.attributes();
HTMLAttributeList attributes;
- for (HTMLToken::AttributeList::const_iterator iter = tokenAttributes.begin(); iter != tokenAttributes.end(); ++iter) {
- String attributeName = attemptStaticStringCreation(iter->name, Likely8Bit);
- String attributeValue = StringImpl::create8BitIfPossible(iter->value);
+ for (const HTMLToken::Attribute& tokenAttribute : tokenAttributes) {
+ String attributeName = attemptStaticStringCreation(tokenAttribute.name, Likely8Bit);
+ String attributeValue = StringImpl::create8BitIfPossible(tokenAttribute.value);
attributes.append(std::make_pair(attributeName, attributeValue));
}

Powered by Google App Engine
This is Rietveld 408576698