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

Unified Diff: content/shell/browser/shell_web_contents_view_delegate_win.cc

Issue 405123002: clang/win: Fix a Wenum-compare warning and a few Wwritable-strings warnings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 months 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 | « base/time/time_win_unittest.cc ('k') | rlz/win/lib/process_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_web_contents_view_delegate_win.cc
diff --git a/content/shell/browser/shell_web_contents_view_delegate_win.cc b/content/shell/browser/shell_web_contents_view_delegate_win.cc
index 9eb834db68c3ec3692472a6f64bff54a0e1b6e53..358f87210c43218b9d92808eec8282f4ef4cb321 100644
--- a/content/shell/browser/shell_web_contents_view_delegate_win.cc
+++ b/content/shell/browser/shell_web_contents_view_delegate_win.cc
@@ -38,7 +38,7 @@ enum {
void MakeContextMenuItem(HMENU menu,
int menu_index,
- LPTSTR text,
+ LPCTSTR text,
UINT id,
bool enabled) {
MENUITEMINFO mii = {0};
@@ -47,7 +47,7 @@ void MakeContextMenuItem(HMENU menu,
mii.fState = enabled ? MFS_ENABLED : (MF_DISABLED | MFS_GRAYED);
mii.fType = MFT_STRING;
mii.wID = id;
- mii.dwTypeData = text;
+ mii.dwTypeData = const_cast<LPTSTR>(text);
InsertMenuItem(menu, menu_index, TRUE, &mii);
}
« no previous file with comments | « base/time/time_win_unittest.cc ('k') | rlz/win/lib/process_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698