Michael Stefaniuc : browseui: Remove superfluous casts from/ to void pointers.

Alexandre Julliard julliard at winehq.org
Sun Jan 4 09:09:02 CST 2009


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sun Jan  4 01:46:07 2009 +0100

browseui: Remove superfluous casts from/to void pointers.

---

 dlls/browseui/browseui_main.c      |    2 +-
 dlls/browseui/progressdlg.c        |    2 +-
 dlls/browseui/tests/autocomplete.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/browseui/browseui_main.c b/dlls/browseui/browseui_main.c
index 447e4f7..54e9c52 100644
--- a/dlls/browseui/browseui_main.c
+++ b/dlls/browseui/browseui_main.c
@@ -146,7 +146,7 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut)
     This->vtbl = &ClassFactoryVtbl;
     This->ref = 1;
     This->ctor = ctor;
-    *ppvOut = (LPVOID)This;
+    *ppvOut = This;
     TRACE("Created class factory %p\n", This);
     BROWSEUI_refCount++;
     return S_OK;
diff --git a/dlls/browseui/progressdlg.c b/dlls/browseui/progressdlg.c
index 120f072..42e7322 100644
--- a/dlls/browseui/progressdlg.c
+++ b/dlls/browseui/progressdlg.c
@@ -223,7 +223,7 @@ static DWORD WINAPI dialog_thread(LPVOID lpParameter)
 {
     /* Note: until we set the hEvent in WM_INITDIALOG, the ProgressDialog object
      * is protected by the critical section held by StartProgress */
-    struct create_params *params = (struct create_params *)lpParameter;
+    struct create_params *params = lpParameter;
     HWND hwnd;
     MSG msg;
 
diff --git a/dlls/browseui/tests/autocomplete.c b/dlls/browseui/tests/autocomplete.c
index 9442e6d..85a7da5 100644
--- a/dlls/browseui/tests/autocomplete.c
+++ b/dlls/browseui/tests/autocomplete.c
@@ -48,7 +48,7 @@
 static LPWSTR strdup_AtoW(LPCSTR str)
 {
     int size = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
-    LPWSTR wstr = (LPWSTR)CoTaskMemAlloc((size + 1)*sizeof(WCHAR));
+    LPWSTR wstr = CoTaskMemAlloc((size + 1)*sizeof(WCHAR));
     MultiByteToWideChar(CP_ACP, 0, str, -1, wstr, size+1);
     return wstr;
 }




More information about the wine-cvs mailing list