From 4e3da621fe26c2ad85258692c63a044d0541bd64 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 28 Jan 2015 13:50:17 +0100 Subject: Some more loplugin:cstylecast clean-up Change-Id: I132d22e2af3cf673c17d8964f690d48990834884 --- stoc/source/invocation_adapterfactory/iafactory.cxx | 2 +- stoc/source/security/access_controller.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'stoc/source') diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx index a300a258b04b..6d6f35a18d40 100644 --- a/stoc/source/invocation_adapterfactory/iafactory.cxx +++ b/stoc/source/invocation_adapterfactory/iafactory.cxx @@ -851,7 +851,7 @@ Reference< XInterface > FactoryImpl::createAdapter( // map one interface to C++ uno_Interface * pUnoI = &that->m_pInterfaces[ 0 ]; m_aUno2Cpp.mapInterface( - (void **)&xRet, pUnoI, ::getCppuType( &xRet ) ); + reinterpret_cast(&xRet), pUnoI, ::getCppuType( &xRet ) ); that->release(); OSL_ASSERT( xRet.is() ); if (! xRet.is()) diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx index 721b095693a8..a50fb9931150 100644 --- a/stoc/source/security/access_controller.cxx +++ b/stoc/source/security/access_controller.cxx @@ -792,7 +792,7 @@ void AccessController::checkPermission( // first dynamic check of ac contexts Reference< XCurrentContext > xContext; - ::uno_getCurrentContext( (void **)&xContext, s_envType.pData, 0 ); + ::uno_getCurrentContext( reinterpret_cast(&xContext), s_envType.pData, 0 ); Reference< security::XAccessControlContext > xACC( getDynamicRestriction( xContext ) ); if (xACC.is()) { @@ -823,7 +823,7 @@ Any AccessController::doRestricted( if (xRestriction.is()) { Reference< XCurrentContext > xContext; - ::uno_getCurrentContext( (void **)&xContext, s_envType.pData, 0 ); + ::uno_getCurrentContext( reinterpret_cast(&xContext), s_envType.pData, 0 ); // override restriction Reference< XCurrentContext > xNewContext( @@ -856,7 +856,7 @@ Any AccessController::doPrivileged( } Reference< XCurrentContext > xContext; - ::uno_getCurrentContext( (void **)&xContext, s_envType.pData, 0 ); + ::uno_getCurrentContext( reinterpret_cast(&xContext), s_envType.pData, 0 ); Reference< security::XAccessControlContext > xOldRestr( getDynamicRestriction( xContext ) ); @@ -891,7 +891,7 @@ Reference< security::XAccessControlContext > AccessController::getContext() } Reference< XCurrentContext > xContext; - ::uno_getCurrentContext( (void **)&xContext, s_envType.pData, 0 ); + ::uno_getCurrentContext( reinterpret_cast(&xContext), s_envType.pData, 0 ); return acc_Intersection::create( getDynamicRestriction( xContext ), -- cgit