diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-03-16 14:14:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-03-16 15:04:35 +0100 |
commit | 67acdf3f1c536079e07afcec6894ed1f8d08b2bd (patch) | |
tree | 8bc6084a085a26fdc3d09fbb4a13af145356e935 /sfx2/source/appl | |
parent | f416acdc3a142c7bf54ae5ea5d5fdcd690e0e810 (diff) |
loplugin:staticdynamic (clang-cl)
Change-Id: Ifb1ee4a221ddacdf676443ec720c12f6504e2f8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112576
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r-- | sfx2/source/appl/appdde.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx index c31ef2bd5e25..0211d8978192 100644 --- a/sfx2/source/appl/appdde.cxx +++ b/sfx2/source/appl/appdde.cxx @@ -149,10 +149,10 @@ bool ImplDdeService::MakeTopic( const OUString& rNm ) SfxCallMode::SYNCHRON, { &aName, &aNewView, &aSilent }); - if( dynamic_cast< const SfxViewFrameItem *>( pRet ) && - static_cast<SfxViewFrameItem const *>(pRet)->GetFrame() && - nullptr != ( pShell = static_cast<SfxViewFrameItem const *>(pRet) - ->GetFrame()->GetObjectShell() ) ) + if( auto const item = dynamic_cast< const SfxViewFrameItem *>( pRet ); + item && + item->GetFrame() && + nullptr != ( pShell = item->GetFrame()->GetObjectShell() ) ) { SfxGetpApp()->AddDdeTopic( pShell ); bRet = true; |