Index: Source/core/inspector/InspectorState.cpp |
diff --git a/Source/core/inspector/InspectorState.cpp b/Source/core/inspector/InspectorState.cpp |
index 0b627b194f2b4b9c42c38fe18b498f16e9b090b2..bcec968eb1be96f77e124678dd7b7848492e136c 100644 |
--- a/Source/core/inspector/InspectorState.cpp |
+++ b/Source/core/inspector/InspectorState.cpp |
@@ -146,14 +146,13 @@ void InspectorCompositeState::loadFromCookie(const String& inspectorCompositeSta |
if (!m_stateObject) |
m_stateObject = JSONObject::create(); |
- InspectorStateMap::iterator end = m_inspectorStateMap.end(); |
- for (InspectorStateMap::iterator it = m_inspectorStateMap.begin(); it != end; ++it) { |
- RefPtr<JSONObject> agentStateObject = m_stateObject->getObject(it->key); |
+ for (auto& state : m_inspectorStateMap) { |
+ RefPtr<JSONObject> agentStateObject = m_stateObject->getObject(state.key); |
if (!agentStateObject) { |
agentStateObject = JSONObject::create(); |
- m_stateObject->setObject(it->key, agentStateObject); |
+ m_stateObject->setObject(state.key, agentStateObject); |
} |
- it->value->setFromCookie(agentStateObject); |
+ state.value->setFromCookie(agentStateObject); |
} |
} |