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

Unified Diff: Source/core/dom/DatasetDOMStringMap.cpp

Issue 448043003: Drop const_iterator for AttributeCollection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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
« no previous file with comments | « Source/core/dom/AttributeCollection.h ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DatasetDOMStringMap.cpp
diff --git a/Source/core/dom/DatasetDOMStringMap.cpp b/Source/core/dom/DatasetDOMStringMap.cpp
index a7871bfa9aec933ff769881a2ee297e362d0b869..777be3d4746fd3a1feee5dad6b4bd928f1246849 100644
--- a/Source/core/dom/DatasetDOMStringMap.cpp
+++ b/Source/core/dom/DatasetDOMStringMap.cpp
@@ -155,8 +155,8 @@ void DatasetDOMStringMap::deref()
void DatasetDOMStringMap::getNames(Vector<String>& names)
{
AttributeCollection attributes = m_element->attributes();
- AttributeCollection::const_iterator end = attributes.end();
- for (AttributeCollection::const_iterator it = attributes.begin(); it != end; ++it) {
+ AttributeCollection::iterator end = attributes.end();
+ for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) {
if (isValidAttributeName(it->localName()))
names.append(convertAttributeNameToPropertyName(it->localName()));
}
@@ -165,8 +165,8 @@ void DatasetDOMStringMap::getNames(Vector<String>& names)
String DatasetDOMStringMap::item(const String& name)
{
AttributeCollection attributes = m_element->attributes();
- AttributeCollection::const_iterator end = attributes.end();
- for (AttributeCollection::const_iterator it = attributes.begin(); it != end; ++it) {
+ AttributeCollection::iterator end = attributes.end();
+ for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) {
if (propertyNameMatchesAttributeName(name, it->localName()))
return it->value();
}
@@ -177,8 +177,8 @@ String DatasetDOMStringMap::item(const String& name)
bool DatasetDOMStringMap::contains(const String& name)
{
AttributeCollection attributes = m_element->attributes();
- AttributeCollection::const_iterator end = attributes.end();
- for (AttributeCollection::const_iterator it = attributes.begin(); it != end; ++it) {
+ AttributeCollection::iterator end = attributes.end();
+ for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) {
if (propertyNameMatchesAttributeName(name, it->localName()))
return true;
}
« no previous file with comments | « Source/core/dom/AttributeCollection.h ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698