summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edundo.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-13 12:12:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-13 13:29:26 +0200
commit51f807841a9242eec85172c6503083294c0c0042 (patch)
tree13fd0d436d9f02bb5b67dd0701287bf132c55dc6 /sw/source/core/edit/edundo.cxx
parent530d0e0569342742d7bcf529b77ba4a409cf01a9 (diff)
static_cast after dynamic_cast
Change-Id: I68c20dfbedb84660cf25df785e1e0b13a7592994 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104229 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/edit/edundo.cxx')
-rw-r--r--sw/source/core/edit/edundo.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/edundo.cxx b/sw/source/core/edit/edundo.cxx
index cfff6b8fa108..a55f45651fba 100644
--- a/sw/source/core/edit/edundo.cxx
+++ b/sw/source/core/edit/edundo.cxx
@@ -222,10 +222,10 @@ static void lcl_SelectSdrMarkList( SwEditShell* pShell,
OSL_ENSURE( pShell != nullptr, "need shell!" );
OSL_ENSURE( pSdrMarkList != nullptr, "need mark list" );
- if( dynamic_cast<const SwFEShell*>( pShell) == nullptr )
+ SwFEShell* pFEShell = dynamic_cast<SwFEShell*>( pShell );
+ if( !pFEShell )
return;
- SwFEShell* pFEShell = static_cast<SwFEShell*>( pShell );
bool bFirst = true;
for( size_t i = 0; i < pSdrMarkList->GetMarkCount(); ++i )
{