From 65ac716c4ed99d20a3bc4858222e586a2ce06087 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 28 Apr 2009 21:47:01 +0000 Subject: [PATCH] 2009-04-28 23:54 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbole/olecore.c * pacified some GCC warnings --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbole/olecore.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 6416ed836c..1ee4dfb28a 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-04-28 23:54 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/contrib/hbole/olecore.c + * pacified some GCC warnings + 2009-04-28 23:13 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rdd/dbf1.c ! casting diff --git a/harbour/contrib/hbole/olecore.c b/harbour/contrib/hbole/olecore.c index 9ac520d374..47a5e4985c 100644 --- a/harbour/contrib/hbole/olecore.c +++ b/harbour/contrib/hbole/olecore.c @@ -507,7 +507,7 @@ HB_FUNC( OLEGETACTIVEOBJECT ) /* ( cOleName | cCLSID [, cIID ] ) */ #if HB_OLE_C_API lOleError = pUnk->lpVtbl->QueryInterface( pUnk, fIID ? &iid : &IID_IDispatch, ( void** ) ( void * ) &pDisp ); #else - lOleError = pUnk->QueryInterface( fIID ? iid : IID_IDispatch, ( void** ) &pDisp ); + lOleError = pUnk->QueryInterface( fIID ? iid : IID_IDispatch, ( void** ) ( void * ) &pDisp ); #endif } } @@ -583,16 +583,16 @@ HB_FUNC( __OLEENUMCREATE ) /* ( __hObj ) */ if( variant.n1.n2.vt == VT_UNKNOWN ) #if HB_OLE_C_API lOleError = ( variant.n1.n2.n3.punkVal )->lpVtbl->QueryInterface( variant.n1.n2.n3.punkVal, - &IID_IEnumVARIANT, ( void** ) &pEnum ); + &IID_IEnumVARIANT, ( void** ) ( void * ) &pEnum ); #else - lOleError = ( variant.n1.n2.n3.punkVal )->QueryInterface( IID_IEnumVARIANT, ( void** ) &pEnum ); + lOleError = ( variant.n1.n2.n3.punkVal )->QueryInterface( IID_IEnumVARIANT, ( void** ) ( void * ) &pEnum ); #endif else if( variant.n1.n2.vt == VT_DISPATCH ) #if HB_OLE_C_API lOleError = ( variant.n1.n2.n3.pdispVal )->lpVtbl->QueryInterface( variant.n1.n2.n3.pdispVal, - &IID_IEnumVARIANT, ( void** ) &pEnum ); + &IID_IEnumVARIANT, ( void** ) ( void * ) &pEnum ); #else - lOleError = ( variant.n1.n2.n3.pdispVal )->QueryInterface( IID_IEnumVARIANT, ( void** ) &pEnum ); + lOleError = ( variant.n1.n2.n3.pdispVal )->QueryInterface( IID_IEnumVARIANT, ( void** ) ( void * ) &pEnum ); #endif else {