Index: Source/core/inspector/InspectorInstrumentation.cpp |
diff --git a/Source/core/inspector/InspectorInstrumentation.cpp b/Source/core/inspector/InspectorInstrumentation.cpp |
index d7294c8c00b5989f4e5f01216a768cc99346a9ee..62e52ffaffc01a3abe383ec11e9c3cb8444a8fee 100644 |
--- a/Source/core/inspector/InspectorInstrumentation.cpp |
+++ b/Source/core/inspector/InspectorInstrumentation.cpp |
@@ -118,9 +118,8 @@ void willDestroyResourceImpl(Resource* cachedResource) |
{ |
if (!instrumentingAgentsSet) |
return; |
pfeldman
2014/12/16 16:52:10
InstrumentingAgents* instrumentingAgents : ..
zhaoze.zhou
2014/12/16 18:56:40
Done.
|
- HashSet<InstrumentingAgents*>::iterator end = instrumentingAgentsSet->end(); |
- for (HashSet<InstrumentingAgents*>::iterator it = instrumentingAgentsSet->begin(); it != end; ++it) { |
- InstrumentingAgents* instrumentingAgents = *it; |
+ for (auto it : *instrumentingAgentsSet) { |
+ InstrumentingAgents* instrumentingAgents = it; |
if (InspectorResourceAgent* inspectorResourceAgent = instrumentingAgents->inspectorResourceAgent()) |
inspectorResourceAgent->willDestroyResource(cachedResource); |
} |