comctl32: Constify some variables.
authorAndrew Talbot <andrew.talbot@talbotville.com>
Sat, 31 Jul 2010 21:53:58 +0000 (22:53 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 2 Aug 2010 10:55:21 +0000 (12:55 +0200)
dlls/comctl32/comboex.c
dlls/comctl32/datetime.c
dlls/comctl32/header.c

index 4b5e079ac99a23ac44b174786e4efcd6efd901a9..6e9075178956011a990a2590737c778116898a9d 100644 (file)
@@ -758,7 +758,7 @@ static HIMAGELIST COMBOEX_SetImageList (COMBOEX_INFO *infoPtr, HIMAGELIST himl)
     return himlTemp;
 }
 
-static BOOL COMBOEX_SetItemW (const COMBOEX_INFO *infoPtr, COMBOBOXEXITEMW *cit)
+static BOOL COMBOEX_SetItemW (const COMBOEX_INFO *infoPtr, const COMBOBOXEXITEMW *cit)
 {
     INT_PTR index = cit->iItem;
     CBE_ITEMDATA *item;
index 24189507d64b0d10ca1e2f8ad2d492b55f9991c6..6204cd138fcdb20b0ee74764908bc7bf75d5d6cf 100644 (file)
@@ -1368,7 +1368,7 @@ DATETIME_Destroy (DATETIME_INFO *infoPtr)
 
 
 static INT
-DATETIME_GetText (DATETIME_INFO *infoPtr, INT count, LPWSTR dst)
+DATETIME_GetText (const DATETIME_INFO *infoPtr, INT count, LPWSTR dst)
 {
     WCHAR buf[80];
     int i;
index d916c7297d505acbf077e163a20f9e25d25bd831..603d0a33e08fb784e737c2468031b85426fd65a2 100644 (file)
@@ -1215,7 +1215,7 @@ HEADER_GetOrderArray(const HEADER_INFO *infoPtr, INT size, LPINT order)
 
 /* Returns index of first duplicate 'value' from [0,to) range,
    or -1 if there isn't any */
-static INT has_duplicate(INT *array, INT to, INT value)
+static INT has_duplicate(const INT *array, INT to, INT value)
 {
     INT i;
     for(i = 0; i < to; i++)
@@ -1224,7 +1224,7 @@ static INT has_duplicate(INT *array, INT to, INT value)
 }
 
 /* returns next available value from [0,max] not to duplicate in [0,to) */
-static INT get_nextvalue(INT *array, INT to, INT max)
+static INT get_nextvalue(const INT *array, INT to, INT max)
 {
     INT i;
     for(i = 0; i < max; i++)