summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr/crsrsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/crsr/crsrsh.cxx')
-rw-r--r--sw/source/core/crsr/crsrsh.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index db3106707482..72269f071b84 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -2881,9 +2881,8 @@ void SwCursorShell::ParkCursor( const SwNodeIndex &rIdx )
// take care of all shells
for(SwViewShell& rTmp : GetRingContainer())
{
- if( dynamic_cast<const SwCursorShell *>(&rTmp) != nullptr)
+ if( auto pSh = dynamic_cast<SwCursorShell *>(&rTmp))
{
- SwCursorShell* pSh = static_cast<SwCursorShell*>(&rTmp);
if (pSh->m_pStackCursor)
pSh->ParkPams(pNew.get(), &pSh->m_pStackCursor);