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; |