Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1141)

Unified Diff: Source/core/inspector/InspectorInputAgent.cpp

Issue 800113002: Use C++11 range-based for loop in Source/core/inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase again and again! Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.cpp ('k') | Source/core/inspector/InspectorInstrumentation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698