Module: wine Branch: master Commit: 3253bf5570629fa82f4d1f2d2cacbee6e1286b5d URL: http://source.winehq.org/git/wine.git/?a=commit;h=3253bf5570629fa82f4d1f2d2c...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Tue Mar 27 21:11:27 2007 +0100
comctl32: Constify some variables.
---
dlls/comctl32/ipaddress.c | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/dlls/comctl32/ipaddress.c b/dlls/comctl32/ipaddress.c index 0ccb347..36682ae 100644 --- a/dlls/comctl32/ipaddress.c +++ b/dlls/comctl32/ipaddress.c @@ -77,7 +77,7 @@ static const WCHAR IP_SUBCLASS_PROP[] = static LRESULT CALLBACK IPADDRESS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
-static LRESULT IPADDRESS_Notify (IPADDRESS_INFO *infoPtr, UINT command) +static LRESULT IPADDRESS_Notify (const IPADDRESS_INFO *infoPtr, UINT command) { HWND hwnd = infoPtr->Self;
@@ -87,7 +87,7 @@ static LRESULT IPADDRESS_Notify (IPADDRESS_INFO *infoPtr, UINT command) MAKEWPARAM (GetWindowLongPtrW (hwnd, GWLP_ID), command), (LPARAM)hwnd); }
-static INT IPADDRESS_IPNotify (IPADDRESS_INFO *infoPtr, INT field, INT value) +static INT IPADDRESS_IPNotify (const IPADDRESS_INFO *infoPtr, INT field, INT value) { NMIPADDRESS nmip;
@@ -109,7 +109,7 @@ static INT IPADDRESS_IPNotify (IPADDRESS_INFO *infoPtr, INT field, INT value) }
-static int IPADDRESS_GetPartIndex(IPADDRESS_INFO *infoPtr, HWND hwnd) +static int IPADDRESS_GetPartIndex(const IPADDRESS_INFO *infoPtr, HWND hwnd) { int i;
@@ -123,7 +123,7 @@ static int IPADDRESS_GetPartIndex(IPADDRESS_INFO *infoPtr, HWND hwnd) }
-static LRESULT IPADDRESS_Draw (IPADDRESS_INFO *infoPtr, HDC hdc) +static LRESULT IPADDRESS_Draw (const IPADDRESS_INFO *infoPtr, HDC hdc) { static const WCHAR dotW[] = { '.', 0 }; RECT rect, rcPart; @@ -165,7 +165,7 @@ static LRESULT IPADDRESS_Draw (IPADDRESS_INFO *infoPtr, HDC hdc) }
-static LRESULT IPADDRESS_Create (HWND hwnd, LPCREATESTRUCTA lpCreate) +static LRESULT IPADDRESS_Create (HWND hwnd, const CREATESTRUCTA *lpCreate) { static const WCHAR EDIT[] = { 'E', 'd', 'i', 't', 0 }; IPADDRESS_INFO *infoPtr; @@ -246,7 +246,7 @@ static LRESULT IPADDRESS_Enable (IPADDRESS_INFO *infoPtr, BOOL enabled) }
-static LRESULT IPADDRESS_Paint (IPADDRESS_INFO *infoPtr, HDC hdc) +static LRESULT IPADDRESS_Paint (const IPADDRESS_INFO *infoPtr, HDC hdc) { PAINTSTRUCT ps;
@@ -261,7 +261,7 @@ static LRESULT IPADDRESS_Paint (IPADDRESS_INFO *infoPtr, HDC hdc) }
-static BOOL IPADDRESS_IsBlank (IPADDRESS_INFO *infoPtr) +static BOOL IPADDRESS_IsBlank (const IPADDRESS_INFO *infoPtr) { int i;
@@ -274,7 +274,7 @@ static BOOL IPADDRESS_IsBlank (IPADDRESS_INFO *infoPtr) }
-static int IPADDRESS_GetAddress (IPADDRESS_INFO *infoPtr, LPDWORD ip_address) +static int IPADDRESS_GetAddress (const IPADDRESS_INFO *infoPtr, LPDWORD ip_address) { WCHAR field[5]; int i, invalid = 0; @@ -308,7 +308,7 @@ static BOOL IPADDRESS_SetRange (IPADDRESS_INFO *infoPtr, int index, WORD range) }
-static void IPADDRESS_ClearAddress (IPADDRESS_INFO *infoPtr) +static void IPADDRESS_ClearAddress (const IPADDRESS_INFO *infoPtr) { WCHAR nil[1] = { 0 }; int i; @@ -320,7 +320,7 @@ static void IPADDRESS_ClearAddress (IPADDRESS_INFO *infoPtr) }
-static LRESULT IPADDRESS_SetAddress (IPADDRESS_INFO *infoPtr, DWORD ip_address) +static LRESULT IPADDRESS_SetAddress (const IPADDRESS_INFO *infoPtr, DWORD ip_address) { WCHAR buf[20]; static const WCHAR fmt[] = { '%', 'd', 0 }; @@ -329,7 +329,7 @@ static LRESULT IPADDRESS_SetAddress (IPADDRESS_INFO *infoPtr, DWORD ip_address) TRACE("\n");
for (i = 3; i >= 0; i--) { - IPPART_INFO* part = &infoPtr->Part[i]; + const IPPART_INFO* part = &infoPtr->Part[i]; int value = ip_address & 0xff; if ( (value >= part->LowerLimit) && (value <= part->UpperLimit) ) { wsprintfW (buf, fmt, value); @@ -343,7 +343,7 @@ static LRESULT IPADDRESS_SetAddress (IPADDRESS_INFO *infoPtr, DWORD ip_address) }
-static void IPADDRESS_SetFocusToField (IPADDRESS_INFO *infoPtr, INT index) +static void IPADDRESS_SetFocusToField (const IPADDRESS_INFO *infoPtr, INT index) { TRACE("(index=%d)\n", index);
@@ -353,9 +353,9 @@ static void IPADDRESS_SetFocusToField (IPADDRESS_INFO *infoPtr, INT index) }
-static BOOL IPADDRESS_ConstrainField (IPADDRESS_INFO *infoPtr, int currentfield) +static BOOL IPADDRESS_ConstrainField (const IPADDRESS_INFO *infoPtr, int currentfield) { - IPPART_INFO *part = &infoPtr->Part[currentfield]; + const IPPART_INFO *part = &infoPtr->Part[currentfield]; WCHAR field[10]; static const WCHAR fmt[] = { '%', 'd', 0 }; int curValue, newValue; @@ -383,7 +383,7 @@ static BOOL IPADDRESS_ConstrainField (IPADDRESS_INFO *infoPtr, int currentfield) }
-static BOOL IPADDRESS_GotoNextField (IPADDRESS_INFO *infoPtr, int cur, int sel) +static BOOL IPADDRESS_GotoNextField (const IPADDRESS_INFO *infoPtr, int cur, int sel) { TRACE("\n");
@@ -391,7 +391,7 @@ static BOOL IPADDRESS_GotoNextField (IPADDRESS_INFO *infoPtr, int cur, int sel) IPADDRESS_ConstrainField(infoPtr, cur);
if(cur < 3) { - IPPART_INFO *next = &infoPtr->Part[cur + 1]; + const IPPART_INFO *next = &infoPtr->Part[cur + 1]; int start = 0, end = 0; SetFocus (next->EditHwnd); if (sel != POS_DEFAULT) {