diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-03-06 20:40:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-07 13:22:28 +0100 |
commit | e4e80ed313882f9ea1b309054e5aa3e839586516 (patch) | |
tree | 0d7e44c4456933d7e946a28c8f8d780372a4334f /starmath/source | |
parent | 4c86b07f80740d609f1a1b04b9f53b19782be036 (diff) |
loplugin:staticdynamic now with extra salt
because it wasn't quite there yet - now checks for casts with and
without const, because const doesn't really matter here.
Change-Id: I319025b2095a803fcaad2a7a696d2730b7fd2f81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112098
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/edit.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index d77433a7df8e..27d33f889dfb 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -467,9 +467,8 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt) { // SFX has maybe called a slot of the view and thus (because of a hack in SFX) // set the focus to the view - SfxViewShell* pVShell = GetView(); - if ( dynamic_cast<const SmViewShell *>(pVShell) && - static_cast<SmViewShell*>(pVShell)->GetGraphicWindow().HasFocus() ) + SmViewShell* pVShell = GetView(); + if ( pVShell && pVShell->GetGraphicWindow().HasFocus() ) { GrabFocus(); } |