summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edws.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/edit/edws.cxx')
-rw-r--r--sw/source/core/edit/edws.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/edws.cxx b/sw/source/core/edit/edws.cxx
index 8c3a9798373b..d7876e31a4fb 100644
--- a/sw/source/core/edit/edws.cxx
+++ b/sw/source/core/edit/edws.cxx
@@ -98,8 +98,8 @@ void SwEditShell::EndAllAction()
{
for(SwViewShell& rCurrentShell : GetRingContainer())
{
- if( dynamic_cast<const SwEditShell *>(&rCurrentShell) != nullptr )
- static_cast<SwEditShell*>(&rCurrentShell)->EndAction();
+ if( auto pEditShell = dynamic_cast<SwEditShell *>(&rCurrentShell))
+ pEditShell->EndAction();
else
rCurrentShell.EndAction();
}