From ab2d0ff4d7c0a3c76401b0f07b85dc2267d1eb7c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 29 Jan 2015 08:12:13 +0100 Subject: loplugin:cstylecast (Mac OS X) Change-Id: Ia8f2c9f1c1c284708a2cbde379197ec6ba58742f --- bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridges/source') diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx index e0e76cae3f03..259aff795031 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx @@ -236,7 +236,7 @@ static typelib_TypeClass cpp2uno_call( uno_destructData( pUnoReturn, pReturnTypeDescr, 0 ); } // complex return ptr is set to return reg - *(void **)pRegisterReturn = pCppReturn; + *reinterpret_cast(pRegisterReturn) = pCppReturn; } if ( pReturnTypeDescr ) { @@ -346,7 +346,7 @@ typelib_TypeClass cpp_vtable_call( XInterface * pInterface = 0; (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface) ( pCppI->getBridge()->getCppEnv(), - (void **)&pInterface, + reinterpret_cast(&pInterface), pCppI->getOid().pData, reinterpret_cast( pTD ) ); -- cgit