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

Unified Diff: Source/core/dom/ScriptedAnimationController.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/NodeListsNodeData.cpp ('k') | Source/core/dom/WeakNodeMap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ScriptedAnimationController.cpp
diff --git a/Source/core/dom/ScriptedAnimationController.cpp b/Source/core/dom/ScriptedAnimationController.cpp
index a453e295e9de77839d74fad19472ebcc9e465db2..69ad2ae92db2ddf8f710a4bd5f9883dd7bf7a893 100644
--- a/Source/core/dom/ScriptedAnimationController.cpp
+++ b/Source/core/dom/ScriptedAnimationController.cpp
@@ -194,9 +194,8 @@ void ScriptedAnimationController::callMediaQueryListListeners()
MediaQueryListListeners listeners;
listeners.swap(m_mediaQueryListListeners);
- for (MediaQueryListListeners::const_iterator it = listeners.begin(), end = listeners.end();
- it != end; ++it) {
- (*it)->notifyMediaQueryChanged();
+ for (const auto& listener : listeners) {
+ listener->notifyMediaQueryChanged();
}
}
« no previous file with comments | « Source/core/dom/NodeListsNodeData.cpp ('k') | Source/core/dom/WeakNodeMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698