diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index bc25189b3b37..c9559c5ecf5a 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -1609,7 +1609,7 @@ inline bool checkUnoStructCopy( bool bVBA, SbxVariableRef& refVal, SbxVariableRe if( !xValObj.Is() || nullptr != dynamic_cast( &xValObj) ) return false; - SbUnoObject* pUnoVal = dynamic_cast( static_cast(xValObj.get()) ); + SbUnoObject* pUnoVal = dynamic_cast( xValObj.get() ); SbUnoStructRefObject* pUnoStructVal = dynamic_cast( static_cast(xValObj) ); Any aAny; // make doubly sure value is either an Uno object or @@ -1632,7 +1632,7 @@ inline bool checkUnoStructCopy( bool bVBA, SbxVariableRef& refVal, SbxVariableRe else SbxBase::ResetError(); - SbUnoStructRefObject* pUnoStructObj = dynamic_cast( static_cast(xVarObj.get()) ); + SbUnoStructRefObject* pUnoStructObj = dynamic_cast( xVarObj.get() ); OUString sClassName = pUnoVal ? pUnoVal->GetClassName() : pUnoStructVal->GetClassName(); OUString sName = pUnoVal ? pUnoVal->GetName() : pUnoStructVal->GetName();