diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-08 16:38:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-08 16:47:31 +0200 |
commit | 7fdbdc5367cc4e86affd4eeb36eb33c9dc4e411f (patch) | |
tree | e85c64ee9cd921ba7db5104eba76142808fe3704 /basic | |
parent | loplugin:redundantcast: redundant static_casts in basctl (diff) | |
download | core-7fdbdc5367cc4e86affd4eeb36eb33c9dc4e411f.tar.gz core-7fdbdc5367cc4e86affd4eeb36eb33c9dc4e411f.zip |
loplugin:redundantcast: redundant static_casts in basic
Change-Id: I6504cb70518f8770a0d44b1fb4d8ad91e43dc2b6
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/runtime.cxx | 4 |
1 files 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<const SbUnoAnyObject*>( &xValObj) ) return false; - SbUnoObject* pUnoVal = dynamic_cast<SbUnoObject*>( static_cast<SbxObject*>(xValObj.get()) ); + SbUnoObject* pUnoVal = dynamic_cast<SbUnoObject*>( xValObj.get() ); SbUnoStructRefObject* pUnoStructVal = dynamic_cast<SbUnoStructRefObject*>( static_cast<SbxObject*>(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<SbUnoStructRefObject*>( static_cast<SbxObject*>(xVarObj.get()) ); + SbUnoStructRefObject* pUnoStructObj = dynamic_cast<SbUnoStructRefObject*>( xVarObj.get() ); OUString sClassName = pUnoVal ? pUnoVal->GetClassName() : pUnoStructVal->GetClassName(); OUString sName = pUnoVal ? pUnoVal->GetName() : pUnoStructVal->GetName(); |