Index: Source/core/inspector/InspectorInputAgent.cpp |
diff --git a/Source/core/inspector/InspectorInputAgent.cpp b/Source/core/inspector/InspectorInputAgent.cpp |
index 9729cb8af38ee24b89687b94bfa3a4443477c04c..6ec0abcac29471a6efdc0269fe55c1562e17e1cf 100644 |
--- a/Source/core/inspector/InspectorInputAgent.cpp |
+++ b/Source/core/inspector/InspectorInputAgent.cpp |
@@ -200,13 +200,12 @@ void InspectorInputAgent::dispatchTouchEvent(ErrorString* error, const String& t |
SyntheticInspectorTouchEvent event(convertedType, convertedModifiers, timestamp ? *timestamp : currentTime()); |
int autoId = 0; |
- JSONArrayBase::iterator iter; |
- for (iter = touchPoints->begin(); iter != touchPoints->end(); ++iter) { |
+ for (auto& touchPoint : *touchPoints) { |
RefPtr<JSONObject> pointObj; |
String state; |
int x, y, radiusX, radiusY, id; |
double rotationAngle, force; |
- (*iter)->asObject(&pointObj); |
+ touchPoint->asObject(&pointObj); |
if (!pointObj->getString("state", &state)) { |
*error = "TouchPoint missing 'state'"; |
return; |