Index: Source/core/inspector/InspectorProfilerAgent.cpp |
diff --git a/Source/core/inspector/InspectorProfilerAgent.cpp b/Source/core/inspector/InspectorProfilerAgent.cpp |
index 6c7eb93f7d37acedb6bf9cd0f032522c76edb93b..dcfb764959b963cddb8ef9d685c9b9d99bbbea20 100644 |
--- a/Source/core/inspector/InspectorProfilerAgent.cpp |
+++ b/Source/core/inspector/InspectorProfilerAgent.cpp |
@@ -264,9 +264,8 @@ void InspectorProfilerAgent::idleFinished() |
double idleTime = WTF::monotonicallyIncreasingTime() - m_idleStartTime; |
m_idleStartTime = 0.0; |
- ProfileNameIdleTimeMap::iterator end = m_profileNameIdleTimeMap->end(); |
- for (ProfileNameIdleTimeMap::iterator it = m_profileNameIdleTimeMap->begin(); it != end; ++it) |
- it->value += idleTime; |
+ for (auto& map : *m_profileNameIdleTimeMap) |
+ map.value += idleTime; |
} |
void InspectorProfilerAgent::idleStarted() |