summaryrefslogtreecommitdiff
path: root/include/com/sun/star/uno/genfunc.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-31 13:12:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-31 13:12:58 +0200
commitc57ffac6954095ef729daf92b9965ced2da2ddc4 (patch)
tree57377e50a6c10b059cb5e29f036f6c991e3bca5c /include/com/sun/star/uno/genfunc.hxx
parent6d393f82b1870368be00a0054feb1685d0a1263d (diff)
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I22ee2cbacad8b19bb55db234e816d401edcf4a35
Diffstat (limited to 'include/com/sun/star/uno/genfunc.hxx')
-rw-r--r--include/com/sun/star/uno/genfunc.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/com/sun/star/uno/genfunc.hxx b/include/com/sun/star/uno/genfunc.hxx
index 49f9e6d129df..a33de80b2c43 100644
--- a/include/com/sun/star/uno/genfunc.hxx
+++ b/include/com/sun/star/uno/genfunc.hxx
@@ -36,12 +36,12 @@ namespace uno
inline void SAL_CALL cpp_acquire( void * pCppI )
{
- reinterpret_cast< XInterface * >( pCppI )->acquire();
+ static_cast< XInterface * >( pCppI )->acquire();
}
inline void SAL_CALL cpp_release( void * pCppI )
{
- reinterpret_cast< XInterface * >( pCppI )->release();
+ static_cast< XInterface * >( pCppI )->release();
}
inline void * SAL_CALL cpp_queryInterface( void * pCppI, typelib_TypeDescriptionReference * pType )
@@ -50,11 +50,11 @@ inline void * SAL_CALL cpp_queryInterface( void * pCppI, typelib_TypeDescription
{
try
{
- Any aRet( reinterpret_cast< XInterface * >( pCppI )->queryInterface(
+ Any aRet( static_cast< XInterface * >( pCppI )->queryInterface(
* reinterpret_cast< const Type * >( &pType ) ) );
if (typelib_TypeClass_INTERFACE == aRet.pType->eTypeClass)
{
- XInterface * pRet = reinterpret_cast< XInterface * >( aRet.pReserved );
+ XInterface * pRet = static_cast< XInterface * >( aRet.pReserved );
aRet.pReserved = 0;
return pRet;
}