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

Unified Diff: content/common/cursors/webcursor.cc

Issue 1507413003: clang/win: Let some chromium_code targets build with -Wextra. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content_browsertests Created 5 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
« no previous file with comments | « content/child/npapi/webplugin_ime_win.cc ('k') | content/common/font_warmup_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « content/child/npapi/webplugin_ime_win.cc ('k') | content/common/font_warmup_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698