summaryrefslogtreecommitdiff
path: root/sfx2/source/appl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-03-16 14:14:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-03-16 15:04:35 +0100
commit67acdf3f1c536079e07afcec6894ed1f8d08b2bd (patch)
tree8bc6084a085a26fdc3d09fbb4a13af145356e935 /sfx2/source/appl
parentf416acdc3a142c7bf54ae5ea5d5fdcd690e0e810 (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.cxx8
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;