Commit f394970e authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

user32: Constify some variables.

parent 361a98c5
...@@ -216,7 +216,7 @@ const struct builtin_class_descr MENU_builtin_class = ...@@ -216,7 +216,7 @@ const struct builtin_class_descr MENU_builtin_class =
if (flags & (bit)) { flags &= ~(bit); MENUOUT ((text)); } \ if (flags & (bit)) { flags &= ~(bit); MENUOUT ((text)); } \
} while (0) } while (0)
static void do_debug_print_menuitem(const char *prefix, MENUITEM * mp, static void do_debug_print_menuitem(const char *prefix, const MENUITEM *mp,
const char *postfix) const char *postfix)
{ {
static const char * const hbmmenus[] = { "HBMMENU_CALLBACK", "", "HBMMENU_SYSTEM", static const char * const hbmmenus[] = { "HBMMENU_CALLBACK", "", "HBMMENU_SYSTEM",
...@@ -1095,7 +1095,7 @@ static void MENU_CalcItemSize( HDC hdc, MENUITEM *lpitem, HWND hwndOwner, ...@@ -1095,7 +1095,7 @@ static void MENU_CalcItemSize( HDC hdc, MENUITEM *lpitem, HWND hwndOwner,
* MENU_GetMaxPopupHeight * MENU_GetMaxPopupHeight
*/ */
static UINT static UINT
MENU_GetMaxPopupHeight(LPPOPUPMENU lppop) MENU_GetMaxPopupHeight(const POPUPMENU *lppop)
{ {
if (lppop->cyMax) if (lppop->cyMax)
return lppop->cyMax; return lppop->cyMax;
...@@ -1268,7 +1268,7 @@ static void MENU_MenuBarCalcSize( HDC hdc, LPRECT lprect, ...@@ -1268,7 +1268,7 @@ static void MENU_MenuBarCalcSize( HDC hdc, LPRECT lprect,
* Draw scroll arrows. * Draw scroll arrows.
*/ */
static void static void
MENU_DrawScrollArrows(LPPOPUPMENU lppop, HDC hdc) MENU_DrawScrollArrows(const POPUPMENU *lppop, HDC hdc)
{ {
HDC hdcMem = CreateCompatibleDC(hdc); HDC hdcMem = CreateCompatibleDC(hdc);
HBITMAP hOrigBitmap; HBITMAP hOrigBitmap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment