diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-12 16:09:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-13 09:30:12 +0200 |
commit | f9ac067da9e61f479e2433d500b9b940e5a45470 (patch) | |
tree | 1b057d3b97cc7dcf6d3de377da34cbf23af9c3ee /sw/source/uibase/dialog | |
parent | 3ee3ae85de3a29ebfb89e75960b65417bfd6ca55 (diff) |
static_cast after dynamic_cast
Change-Id: I487b5dc148f5a3d0d45f198c00179002841242ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104213
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dialog')
-rw-r--r-- | sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx index 58070eb13352..0ce6317b294e 100644 --- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx +++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx @@ -632,9 +632,9 @@ SwWrtShell* SwSpellDialogChildWindow::GetWrtShell_Impl() sal_uInt16 nShellIdx = 0; SfxShell* pShell; while(nullptr != (pShell = pDispatch->GetShell(nShellIdx++))) - if(dynamic_cast< const SwView *>( pShell ) != nullptr) + if(auto pSwView = dynamic_cast< SwView *>( pShell )) { - pView = static_cast<SwView* >(pShell); + pView = pSwView; break; } } |