Module: wine Branch: master Commit: f5d8fa66134ee71cb598bd40adc9df3d9044978f URL: http://source.winehq.org/git/wine.git/?a=commit;h=f5d8fa66134ee71cb598bd40ad...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Sat Jun 6 17:20:48 2009 +0100
comctl32: Constify some variables.
---
dlls/comctl32/listview.c | 2 +- dlls/comctl32/rebar.c | 2 +- dlls/comctl32/status.c | 2 +- dlls/comctl32/tab.c | 4 ++-- dlls/comctl32/toolbar.c | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index dafb914..8d4f6f3 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -9942,7 +9942,7 @@ static LRESULT LISTVIEW_ShowWindow(LISTVIEW_INFO *infoPtr, BOOL bShown, INT iSta * RETURN: * Current version */ -static inline LRESULT LISTVIEW_GetVersion(LISTVIEW_INFO *infoPtr) +static inline LRESULT LISTVIEW_GetVersion(const LISTVIEW_INFO *infoPtr) { return infoPtr->iVersion; } diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c index 982c844..8e18e22 100644 --- a/dlls/comctl32/rebar.c +++ b/dlls/comctl32/rebar.c @@ -452,7 +452,7 @@ static int get_rect_cy(const REBAR_INFO *infoPtr, const RECT *lpRect) return lpRect->bottom - lpRect->top; }
-static int round_child_height(REBAR_BAND *lpBand, int cyHeight) +static int round_child_height(const REBAR_BAND *lpBand, int cyHeight) { int cy = 0; if (lpBand->cyIntegral == 0) diff --git a/dlls/comctl32/status.c b/dlls/comctl32/status.c index f7d203b..11a977d 100644 --- a/dlls/comctl32/status.c +++ b/dlls/comctl32/status.c @@ -333,7 +333,7 @@ STATUSBAR_Refresh (STATUS_INFO *infoPtr, HDC hdc)
static int -STATUSBAR_InternalHitTest(const STATUS_INFO *infoPtr, const LPPOINT pt) +STATUSBAR_InternalHitTest(const STATUS_INFO *infoPtr, const POINT *pt) { int i; if (infoPtr->simple) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index b884697..4b439b2 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -1445,7 +1445,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
static void -TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect) +TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, const RECT *drawRect) { LONG lStyle = GetWindowLongW(infoPtr->hwnd, GWL_STYLE); HBRUSH hbr = CreateSolidBrush (comctl32_color.clrBtnFace); @@ -3223,7 +3223,7 @@ TAB_SetExtendedStyle (TAB_INFO *infoPtr, DWORD exMask, DWORD exStyle) }
static inline LRESULT -TAB_GetExtendedStyle (TAB_INFO *infoPtr) +TAB_GetExtendedStyle (const TAB_INFO *infoPtr) { return infoPtr->exStyle; } diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index 5a0344f..9bbac21 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -240,7 +240,7 @@ typedef enum static const WCHAR themeClass[] = { 'T','o','o','l','b','a','r',0 };
static BOOL TOOLBAR_GetButtonInfo(const TOOLBAR_INFO *infoPtr, NMTOOLBARW *nmtb); -static BOOL TOOLBAR_IsButtonRemovable(const TOOLBAR_INFO *infoPtr, int iItem, PCUSTOMBUTTON btnInfo); +static BOOL TOOLBAR_IsButtonRemovable(const TOOLBAR_INFO *infoPtr, int iItem, const CUSTOMBUTTON *btnInfo); static HIMAGELIST TOOLBAR_GetImageList(const PIMLENTRY *pies, INT cies, INT id); static PIMLENTRY TOOLBAR_GetImageListEntry(const PIMLENTRY *pies, INT cies, INT id); static VOID TOOLBAR_DeleteImageList(PIMLENTRY **pies, INT *cies); @@ -1770,7 +1770,7 @@ TOOLBAR_LayoutToolbar(TOOLBAR_INFO *infoPtr)
static INT -TOOLBAR_InternalHitTest (TOOLBAR_INFO *infoPtr, const POINT *lpPt) +TOOLBAR_InternalHitTest (const TOOLBAR_INFO *infoPtr, const POINT *lpPt) { TBUTTON_INFO *btnPtr; INT i; @@ -3676,7 +3676,7 @@ TOOLBAR_HideButton (TOOLBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
static inline LRESULT -TOOLBAR_HitTest (TOOLBAR_INFO *infoPtr, LPARAM lParam) +TOOLBAR_HitTest (const TOOLBAR_INFO *infoPtr, LPARAM lParam) { return TOOLBAR_InternalHitTest (infoPtr, (LPPOINT)lParam); } @@ -7039,7 +7039,7 @@ static BOOL TOOLBAR_GetButtonInfo(const TOOLBAR_INFO *infoPtr, NMTOOLBARW *nmtb) }
-static BOOL TOOLBAR_IsButtonRemovable(const TOOLBAR_INFO *infoPtr, int iItem, PCUSTOMBUTTON btnInfo) +static BOOL TOOLBAR_IsButtonRemovable(const TOOLBAR_INFO *infoPtr, int iItem, const CUSTOMBUTTON *btnInfo) { NMTOOLBARW nmtb;