summaryrefslogtreecommitdiff
path: root/stoc/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-28 13:50:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-28 13:50:37 +0100
commit4e3da621fe26c2ad85258692c63a044d0541bd64 (patch)
tree05607d0de471c5d9451b197945243f735ee168b0 /stoc/source
parent4b60941b60262be4861f5e8fba95366d3187c445 (diff)
Some more loplugin:cstylecast clean-up
Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
Diffstat (limited to 'stoc/source')
-rw-r--r--stoc/source/invocation_adapterfactory/iafactory.cxx2
-rw-r--r--stoc/source/security/access_controller.cxx8
2 files changed, 5 insertions, 5 deletions
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<void **>(&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<void **>(&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<void **>(&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<void **>(&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<void **>(&xContext), s_envType.pData, 0 );
return acc_Intersection::create(
getDynamicRestriction( xContext ),