summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/trvltbl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/crsr/trvltbl.cxx')
-rw-r--r--sw/source/core/crsr/trvltbl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx
index 835304a9e6c9..fb093622b51a 100644
--- a/sw/source/core/crsr/trvltbl.cxx
+++ b/sw/source/core/crsr/trvltbl.cxx
@@ -917,9 +917,9 @@ bool SwCursorShell::EndAllTableBoxEdit()
bool bRet = false;
for(SwViewShell& rSh : GetRingContainer())
{
- if( dynamic_cast<const SwCursorShell *>(&rSh) != nullptr )
- bRet |= static_cast<SwCursorShell*>(&rSh)->CheckTableBoxContent(
- static_cast<SwCursorShell*>(&rSh)->m_pCurrentCursor->GetPoint() );
+ if( auto pCursorShell = dynamic_cast<SwCursorShell *>(&rSh) )
+ bRet |= pCursorShell->CheckTableBoxContent(
+ pCursorShell->m_pCurrentCursor->GetPoint() );
}
return bRet;