Index: Source/core/inspector/InspectorDebuggerAgent.cpp |
diff --git a/Source/core/inspector/InspectorDebuggerAgent.cpp b/Source/core/inspector/InspectorDebuggerAgent.cpp |
index 44d2f8ad482edc4ed90ff6057252bae1009203d6..72e634425ea36f2c1940e5e62dbcdc6476d3842c 100644 |
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp |
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp |
@@ -369,10 +369,10 @@ void InspectorDebuggerAgent::setBreakpointByUrl(ErrorString* errorString, int li |
m_state->setObject(DebuggerAgentState::javaScriptBreakpoints, breakpointsCookie); |
ScriptBreakpoint breakpoint(lineNumber, columnNumber, condition); |
- for (ScriptsMap::iterator it = m_scripts.begin(); it != m_scripts.end(); ++it) { |
- if (!matches(it->value.sourceURL(), url, isRegex)) |
+ for (auto it : m_scripts) { |
+ if (!matches(it.value.sourceURL(), url, isRegex)) |
continue; |
- RefPtr<TypeBuilder::Debugger::Location> location = resolveBreakpoint(breakpointId, it->key, breakpoint, UserBreakpointSource); |
+ RefPtr<TypeBuilder::Debugger::Location> location = resolveBreakpoint(breakpointId, it.key, breakpoint, UserBreakpointSource); |
if (location) |
locations->addItem(location); |
} |
@@ -1319,8 +1319,8 @@ void InspectorDebuggerAgent::didParseSource(const String& scriptId, const Script |
return; |
RefPtr<JSONObject> breakpointsCookie = m_state->getObject(DebuggerAgentState::javaScriptBreakpoints); |
- for (JSONObject::iterator it = breakpointsCookie->begin(); it != breakpointsCookie->end(); ++it) { |
- RefPtr<JSONObject> breakpointObject = it->value->asObject(); |
+ for (auto it : *breakpointsCookie) { |
+ RefPtr<JSONObject> breakpointObject = it.value->asObject(); |
bool isRegex; |
breakpointObject->getBoolean(DebuggerAgentState::isRegex, &isRegex); |
String url; |
@@ -1331,9 +1331,9 @@ void InspectorDebuggerAgent::didParseSource(const String& scriptId, const Script |
breakpointObject->getNumber(DebuggerAgentState::lineNumber, &breakpoint.lineNumber); |
breakpointObject->getNumber(DebuggerAgentState::columnNumber, &breakpoint.columnNumber); |
breakpointObject->getString(DebuggerAgentState::condition, &breakpoint.condition); |
- RefPtr<TypeBuilder::Debugger::Location> location = resolveBreakpoint(it->key, scriptId, breakpoint, UserBreakpointSource); |
+ RefPtr<TypeBuilder::Debugger::Location> location = resolveBreakpoint(it.key, scriptId, breakpoint, UserBreakpointSource); |
if (location) |
- m_frontend->breakpointResolved(it->key, location); |
+ m_frontend->breakpointResolved(it.key, location); |
} |
} |
@@ -1373,8 +1373,8 @@ ScriptDebugListener::SkipPauseRequest InspectorDebuggerAgent::didPause(ScriptSta |
RefPtr<Array<String> > hitBreakpointIds = Array<String>::create(); |
- for (Vector<String>::const_iterator i = hitBreakpoints.begin(); i != hitBreakpoints.end(); ++i) { |
- DebugServerBreakpointToBreakpointIdAndSourceMap::iterator breakpointIterator = m_serverBreakpoints.find(*i); |
+ for (const auto& i : hitBreakpoints) { |
+ DebugServerBreakpointToBreakpointIdAndSourceMap::iterator breakpointIterator = m_serverBreakpoints.find(i); |
if (breakpointIterator != m_serverBreakpoints.end()) { |
const String& localId = breakpointIterator->value.first; |
hitBreakpointIds->addItem(localId); |