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

Unified Diff: Source/core/inspector/PromiseTracker.cpp

Issue 800113002: Use C++11 range-based for loop in Source/core/inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase again and again! Created 6 years 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/inspector/NetworkResourcesData.cpp ('k') | Source/core/inspector/TraceEventDispatcher.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/PromiseTracker.cpp
diff --git a/Source/core/inspector/PromiseTracker.cpp b/Source/core/inspector/PromiseTracker.cpp
index ffc57d05573b3f041a2a2df3c4dd12919f8e2042..f9fb6d9926de6fdeaa3ad64c5d403163be8ab9f1 100644
--- a/Source/core/inspector/PromiseTracker.cpp
+++ b/Source/core/inspector/PromiseTracker.cpp
@@ -280,8 +280,8 @@ PassRefPtr<Array<PromiseDetails> > PromiseTracker::promises()
ASSERT(isEnabled());
RefPtr<Array<PromiseDetails> > result = Array<PromiseDetails>::create();
- for (PromiseDataMap::iterator it = m_promiseDataMap.begin(); it != m_promiseDataMap.end(); ++it) {
- PromiseDataVector* vector = &it->value;
+ for (auto& data : m_promiseDataMap) {
+ PromiseDataVector* vector = &data.value;
for (size_t index = 0; index < vector->size(); ++index) {
RefPtrWillBeRawPtr<PromiseData> data = vector->at(index);
PromiseDetails::Status::Enum status;
« no previous file with comments | « Source/core/inspector/NetworkResourcesData.cpp ('k') | Source/core/inspector/TraceEventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698