diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 18:58:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:17 +0100 |
commit | c3fb36ed26a6c8dce0a8026ef8b75190955d2443 (patch) | |
tree | 45fa2dc122e76527b095f85eade049ea896b90d3 /basic/source/runtime/runtime.cxx | |
parent | 989f0ec5739ca00873d1c7b2b1617b1f354215f4 (diff) |
Clean up C-style casts from pointers to void
Change-Id: I6dd7c7fbaf0d4b22abba0a7b1f5e37f0a46d0747
Diffstat (limited to 'basic/source/runtime/runtime.cxx')
-rw-r--r-- | basic/source/runtime/runtime.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index 39be30272de6..122b8fccaad8 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -3741,7 +3741,7 @@ void SbiRuntime::SetupArgs( SbxVariable* p, sal_uInt32 nOp1 ) if( aAny.getValueType().getTypeClass() == TypeClass_INTERFACE ) { - Reference< XInterface > x = *(Reference< XInterface >*)aAny.getValue(); + Reference< XInterface > x = *static_cast<Reference< XInterface > const *>(aAny.getValue()); Reference< XDefaultMethod > xDfltMethod( x, UNO_QUERY ); OUString sDefaultMethod; @@ -3869,7 +3869,7 @@ SbxVariable* SbiRuntime::CheckArray( SbxVariable* pElem ) if( aAny.getValueType().getTypeClass() == TypeClass_INTERFACE ) { - Reference< XInterface > x = *(Reference< XInterface >*)aAny.getValue(); + Reference< XInterface > x = *static_cast<Reference< XInterface > const *>(aAny.getValue()); Reference< XIndexAccess > xIndexAccess( x, UNO_QUERY ); if ( !bVBAEnabled ) { @@ -3891,7 +3891,7 @@ SbxVariable* SbiRuntime::CheckArray( SbxVariable* pElem ) TypeClass eType = aAny2.getValueType().getTypeClass(); if( eType == TypeClass_INTERFACE ) { - xRet = *(Reference< XInterface >*)aAny2.getValue(); + xRet = *static_cast<Reference< XInterface > const *>(aAny2.getValue()); } } catch (const IndexOutOfBoundsException&) @@ -3939,7 +3939,7 @@ SbxVariable* SbiRuntime::CheckArray( SbxVariable* pElem ) Any aUnoAny = pUnoObj->getUnoAny(); if( aUnoAny.getValueType().getTypeClass() == TypeClass_INTERFACE ) - x = *(Reference< XInterface >*)aUnoAny.getValue(); + x = *static_cast<Reference< XInterface > const *>(aUnoAny.getValue()); pElem = pDflt; } } |