Andrew Talbot : qcap: Remove unneeded casts.

Alexandre Julliard julliard at winehq.org
Wed Jan 16 07:09:32 CST 2008


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Tue Jan 15 21:49:21 2008 +0000

qcap: Remove unneeded casts.

---

 dlls/qcap/capturegraph.c |    6 +++---
 dlls/qcap/v4l.c          |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/qcap/capturegraph.c b/dlls/qcap/capturegraph.c
index c25dfe3..c5631b1 100644
--- a/dlls/qcap/capturegraph.c
+++ b/dlls/qcap/capturegraph.c
@@ -165,7 +165,7 @@ fnCaptureGraphBuilder2_Release(ICaptureGraphBuilder2 * iface)
         This->lpVtbl = NULL;
         This->lpVtbl2 = NULL;
         if (This->mygraph != NULL)
-            IGraphBuilder_Release((IGraphBuilder *)This->mygraph);
+            IGraphBuilder_Release(This->mygraph);
         CoTaskMemFree(This);
         ObjectRefCount(FALSE);
     }
@@ -191,7 +191,7 @@ fnCaptureGraphBuilder2_SetFilterGraph(ICaptureGraphBuilder2 * iface,
         return E_POINTER;
 
     This->mygraph = pfg;
-    IGraphBuilder_AddRef((IGraphBuilder *)This->mygraph);
+    IGraphBuilder_AddRef(This->mygraph);
     if (SUCCEEDED(IUnknown_QueryInterface(This->mygraph,
                                           &IID_IMediaEvent, (LPVOID *)&pmev)))
     {
@@ -219,7 +219,7 @@ fnCaptureGraphBuilder2_GetFilterGraph(ICaptureGraphBuilder2 * iface,
         return E_UNEXPECTED;
     }
 
-    IGraphBuilder_AddRef((IGraphBuilder *)This->mygraph);
+    IGraphBuilder_AddRef(This->mygraph);
    
     TRACE("(%p) return filtergraph %p\n", iface, *pfg);
     return S_OK;
diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c
index 0742968..4ad2d9c 100644
--- a/dlls/qcap/v4l.c
+++ b/dlls/qcap/v4l.c
@@ -893,11 +893,11 @@ Capture * qcap_driver_init( IPin *pOut, USHORT card )
 
     TRACE("format: %d bits - %d x %d\n", capBox->bitDepth, capBox->width, capBox->height);
 
-    return (Capture*) capBox;
+    return capBox;
 
 error:
     if (capBox)
-        qcap_driver_destroy( (Capture*) capBox );
+        qcap_driver_destroy( capBox );
 
     return NULL;
 }




More information about the wine-cvs mailing list