Index: Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMDebuggerAgent.cpp b/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
index 05e1821fb8c3c8f0e4bf36dea94d99f5c36c1174..6fc68174712da95b109b001c94f46d8bd6e7c8be 100644 |
--- a/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
@@ -563,9 +563,9 @@ void InspectorDOMDebuggerAgent::willSendXMLHttpRequest(const String& url) |
breakpointURL = ""; |
else { |
RefPtr<JSONObject> xhrBreakpoints = m_state->getObject(DOMDebuggerAgentState::xhrBreakpoints); |
- for (JSONObject::iterator it = xhrBreakpoints->begin(); it != xhrBreakpoints->end(); ++it) { |
- if (url.contains(it->key)) { |
- breakpointURL = it->key; |
+ for (auto& breakpoint : *xhrBreakpoints) { |
+ if (url.contains(breakpoint.key)) { |
+ breakpointURL = breakpoint.key; |
break; |
} |
} |