Index: Source/core/dom/NodeListsNodeData.cpp |
diff --git a/Source/core/dom/NodeListsNodeData.cpp b/Source/core/dom/NodeListsNodeData.cpp |
index 279cd6eec2d812668130046c3801c95a18368a5d..ed9cee06b554a163a3ab1f07cb3110774f15ce16 100644 |
--- a/Source/core/dom/NodeListsNodeData.cpp |
+++ b/Source/core/dom/NodeListsNodeData.cpp |
@@ -35,16 +35,14 @@ namespace blink { |
void NodeListsNodeData::invalidateCaches(const QualifiedName* attrName) |
{ |
- NodeListAtomicNameCacheMap::const_iterator atomicNameCacheEnd = m_atomicNameCaches.end(); |
- for (NodeListAtomicNameCacheMap::const_iterator it = m_atomicNameCaches.begin(); it != atomicNameCacheEnd; ++it) |
- it->value->invalidateCacheForAttribute(attrName); |
+ for (const auto& cache : m_atomicNameCaches) |
+ cache.value->invalidateCacheForAttribute(attrName); |
if (attrName) |
return; |
- TagCollectionCacheNS::iterator tagCacheEnd = m_tagCollectionCacheNS.end(); |
- for (TagCollectionCacheNS::iterator it = m_tagCollectionCacheNS.begin(); it != tagCacheEnd; ++it) |
- it->value->invalidateCache(); |
+ for (auto& cache : m_tagCollectionCacheNS) |
+ cache.value->invalidateCache(); |
} |
void NodeListsNodeData::trace(Visitor* visitor) |