diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-28 13:50:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-28 13:50:37 +0100 |
commit | 4e3da621fe26c2ad85258692c63a044d0541bd64 (patch) | |
tree | 05607d0de471c5d9451b197945243f735ee168b0 /include/uno | |
parent | 4b60941b60262be4861f5e8fba95366d3187c445 (diff) |
Some more loplugin:cstylecast clean-up
Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
Diffstat (limited to 'include/uno')
-rw-r--r-- | include/uno/current_context.hxx | 4 | ||||
-rw-r--r-- | include/uno/mapping.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/uno/current_context.hxx b/include/uno/current_context.hxx index 9e043491e332..5627044039ab 100644 --- a/include/uno/current_context.hxx +++ b/include/uno/current_context.hxx @@ -45,7 +45,7 @@ inline Reference< XCurrentContext > SAL_CALL getCurrentContext() { Reference< XCurrentContext > xRet; ::rtl::OUString aEnvTypeName( CPPU_CURRENT_LANGUAGE_BINDING_NAME ); - ::uno_getCurrentContext( (void **)&xRet, aEnvTypeName.pData, 0 ); + ::uno_getCurrentContext( reinterpret_cast<void **>(&xRet), aEnvTypeName.pData, 0 ); return xRet; } /** Setting the current context. @@ -95,7 +95,7 @@ public: inline ContextLayer::ContextLayer( Reference< XCurrentContext > const & xNewContext ) : m_aEnvTypeName( CPPU_CURRENT_LANGUAGE_BINDING_NAME ) { - ::uno_getCurrentContext( (void **)&m_xPreviousContext, m_aEnvTypeName.pData, 0 ); + ::uno_getCurrentContext( reinterpret_cast<void **>(&m_xPreviousContext), m_aEnvTypeName.pData, 0 ); ::uno_setCurrentContext( xNewContext.get(), m_aEnvTypeName.pData, 0 ); } diff --git a/include/uno/mapping.hxx b/include/uno/mapping.hxx index 1199c71ff4e3..51a12d32b53c 100644 --- a/include/uno/mapping.hxx +++ b/include/uno/mapping.hxx @@ -325,7 +325,7 @@ inline bool mapToUno( uno_Interface ** ppRet, const Reference< C > & x ) ::rtl::OUString( UNO_LB_UNO ) ); OSL_ASSERT( aMapping.is() ); aMapping.mapInterface( - (void **)ppRet, x.get(), ::cppu::getTypeFavourUnsigned( &x ) ); + reinterpret_cast<void **>(ppRet), x.get(), ::cppu::getTypeFavourUnsigned( &x ) ); return (0 != *ppRet); } |