| Index: content/common/cursors/webcursor.cc
|
| diff --git a/content/common/cursors/webcursor.cc b/content/common/cursors/webcursor.cc
|
| index b2dfcdf0aaaf0ccca777445bfdb9479494bc99c9..d610ceb45d36a817a8e74b1320a96c92c23ecb52 100644
|
| --- a/content/common/cursors/webcursor.cc
|
| +++ b/content/common/cursors/webcursor.cc
|
| @@ -192,9 +192,9 @@ static WebCursorInfo::Type ToCursorType(HCURSOR cursor) {
|
| { LoadCursor(NULL, IDC_APPSTARTING), WebCursorInfo::TypeProgress },
|
| { LoadCursor(NULL, IDC_NO), WebCursorInfo::TypeNotAllowed },
|
| };
|
| - for (int i = 0; i < arraysize(kStandardCursors); ++i) {
|
| - if (cursor == kStandardCursors[i].cursor)
|
| - return kStandardCursors[i].type;
|
| + for (const auto& kStandardCursor : kStandardCursors) {
|
| + if (cursor == kStandardCursor.cursor)
|
| + return kStandardCursor.type;
|
| }
|
| return WebCursorInfo::TypeCustom;
|
| }
|
|
|