diff options
-rw-r--r-- | sw/source/core/edit/edws.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/edws.cxx b/sw/source/core/edit/edws.cxx index d9ce2329e225..32770a346284 100644 --- a/sw/source/core/edit/edws.cxx +++ b/sw/source/core/edit/edws.cxx @@ -88,8 +88,8 @@ void SwEditShell::StartAllAction() { for(SwViewShell& rCurrentShell : GetRingContainer()) { - if( dynamic_cast<const SwEditShell *>(&rCurrentShell) != nullptr ) - static_cast<SwEditShell*>(&rCurrentShell)->StartAction(); + if (SwEditShell* pEditShell = dynamic_cast<SwEditShell*>(&rCurrentShell)) + pEditShell->StartAction(); else rCurrentShell.StartAction(); } |