Michael Stefaniuc : comctl32/tests: Remove superfluous pointer casts.

Alexandre Julliard julliard at winehq.org
Fri Feb 6 09:56:07 CST 2009


Module: wine
Branch: master
Commit: fc46bb14798e095d89cf242db4646526239a31a8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fc46bb14798e095d89cf242db4646526239a31a8

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Feb  6 10:38:02 2009 +0100

comctl32/tests: Remove superfluous pointer casts.

---

 dlls/comctl32/tests/dpa.c      |    2 +-
 dlls/comctl32/tests/header.c   |    4 ++--
 dlls/comctl32/tests/tab.c      |    2 +-
 dlls/comctl32/tests/trackbar.c |    4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/comctl32/tests/dpa.c b/dlls/comctl32/tests/dpa.c
index a0d1920..ed28119 100644
--- a/dlls/comctl32/tests/dpa.c
+++ b/dlls/comctl32/tests/dpa.c
@@ -373,7 +373,7 @@ static void test_dpa(void)
     if(pDPA_EnumCallback)
     {
         nEnum = 0;
-        pDPA_EnumCallback(dpa2, CB_EnumFirstThree, (PVOID)dpa2);
+        pDPA_EnumCallback(dpa2, CB_EnumFirstThree, dpa2);
         rc=CheckDPA(dpa2, 0x777456, &dw2);
         ok(rc, "dw=0x%x\n", dw2);
         ok(nEnum == 3, "nEnum=%d\n", nEnum);
diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c
index 5598e58..ec73803 100644
--- a/dlls/comctl32/tests/header.c
+++ b/dlls/comctl32/tests/header.c
@@ -1159,10 +1159,10 @@ static void test_hdm_index_messages(HWND hParent)
     flush_sequences(sequences, NUM_MSG_SEQUENCES);
 
     iSize = SendMessage(hChild, HDM_GETITEMCOUNT, 0, (LPARAM) &hdItem);
-    retVal = SendMessage(hChild, HDM_SETORDERARRAY, (WPARAM) iSize , (LPARAM) (LPINT) lpiarray );
+    retVal = SendMessage(hChild, HDM_SETORDERARRAY, iSize, (LPARAM) lpiarray);
     ok(retVal == TRUE, "Setting header items order should return TRUE, got %d\n", retVal);
 
-    retVal = SendMessage(hChild, HDM_GETORDERARRAY, (WPARAM) iSize, (LPARAM) (LPINT) lpiarrayReceived );
+    retVal = SendMessage(hChild, HDM_GETORDERARRAY, iSize, (LPARAM) lpiarrayReceived);
     ok(retVal == TRUE, "Getting header items order should return TRUE, got %d\n", retVal);
 
     ok_sequence(sequences, HEADER_SEQ_INDEX, orderArray_seq, "set_get_orderArray sequence testing", FALSE);
diff --git a/dlls/comctl32/tests/tab.c b/dlls/comctl32/tests/tab.c
index b39f52e..4b1c7f4 100644
--- a/dlls/comctl32/tests/tab.c
+++ b/dlls/comctl32/tests/tab.c
@@ -492,7 +492,7 @@ static HWND create_tooltip (HWND hTab, char toolTipText[])
     ti.rect = rect;
 
     /* Add toolinfo structure to the tooltip control */
-    SendMessage(hwndTT, TTM_ADDTOOL, 0, (LPARAM) (LPTOOLINFO) &ti);
+    SendMessage(hwndTT, TTM_ADDTOOL, 0, (LPARAM) &ti);
 
     return hwndTT;
 }
diff --git a/dlls/comctl32/tests/trackbar.c b/dlls/comctl32/tests/trackbar.c
index 26cdeac..d57e28d 100644
--- a/dlls/comctl32/tests/trackbar.c
+++ b/dlls/comctl32/tests/trackbar.c
@@ -511,7 +511,7 @@ static void test_trackbar_buddy(HWND hWndTrackbar){
 
     flush_sequences(sequences, NUM_MSG_SEQUENCE);
 
-    hWndLeftBuddy = (HWND) CreateWindowEx(0, STATUSCLASSNAME, NULL, 0,
+    hWndLeftBuddy = CreateWindowEx(0, STATUSCLASSNAME, NULL, 0,
         0,0,300,20, NULL, NULL, NULL, NULL);
     ok(hWndLeftBuddy != NULL, "Expected non NULL value\n");
 
@@ -524,7 +524,7 @@ static void test_trackbar_buddy(HWND hWndTrackbar){
     } else
         skip ("left buddy control not present?\n");
 
-    hWndRightBuddy = (HWND) CreateWindowEx(0, STATUSCLASSNAME, NULL, 0,
+    hWndRightBuddy = CreateWindowEx(0, STATUSCLASSNAME, NULL, 0,
         0,0,300,20,NULL,NULL, NULL, NULL);
 
     ok(hWndRightBuddy != NULL, "expected non NULL value\n");




More information about the wine-cvs mailing list