From 7fdbdc5367cc4e86affd4eeb36eb33c9dc4e411f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 8 Jul 2016 16:38:51 +0200 Subject: [PATCH] loplugin:redundantcast: redundant static_casts in basic Change-Id: I6504cb70518f8770a0d44b1fb4d8ad91e43dc2b6 --- basic/source/runtime/runtime.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();