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

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

Issue 796913002: Use C++11 range-based loop for core/clipboard, core/dom and core/testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 11 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/Node.cpp ('k') | Source/core/dom/ScriptedAnimationController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/dom/ScriptedAnimationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698