diff options
Diffstat (limited to 'sw/source/core/crsr/crsrsh.cxx')
-rw-r--r-- | sw/source/core/crsr/crsrsh.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index 5c7869a5c331..1158e82afdc8 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -964,8 +964,7 @@ bool SwCursorShell::TestCurrPam( { return true; // return without update } - } while( m_pCurrentCursor != - ( pCmp = dynamic_cast<SwShellCursor*>(pCmp->GetNext()) ) ); + } while( m_pCurrentCursor != ( pCmp = pCmp->GetNext() ) ); return false; } @@ -1219,7 +1218,7 @@ bool SwCursorShell::GoNextCursor() SET_CURR_SHELL( this ); SwCallLink aLk( *this ); // watch Cursor-Moves; call Link if needed - m_pCurrentCursor = dynamic_cast<SwShellCursor*>(m_pCurrentCursor->GetNext()); + m_pCurrentCursor = m_pCurrentCursor->GetNext(); // #i24086#: show also all others if( !ActionPend() ) @@ -1238,7 +1237,7 @@ bool SwCursorShell::GoPrevCursor() SET_CURR_SHELL( this ); SwCallLink aLk( *this ); // watch Cursor-Moves; call Link if needed - m_pCurrentCursor = dynamic_cast<SwShellCursor*>(m_pCurrentCursor->GetPrev()); + m_pCurrentCursor = m_pCurrentCursor->GetPrev(); // #i24086#: show also all others if( !ActionPend() ) @@ -1839,11 +1838,11 @@ void SwCursorShell::UpdateCursor( sal_uInt16 eFlags, bool bIdleEnd ) m_pCurrentCursor->SwSelPaintRects::Show(); if( m_pBlockCursor ) { - SwShellCursor* pNxt = dynamic_cast<SwShellCursor*>(m_pCurrentCursor->GetNext()); + SwShellCursor* pNxt = m_pCurrentCursor->GetNext(); while( pNxt && pNxt != m_pCurrentCursor ) { pNxt->SwSelPaintRects::Show(); - pNxt = dynamic_cast<SwShellCursor*>(pNxt->GetNext()); + pNxt = pNxt->GetNext(); } } } @@ -2023,7 +2022,7 @@ bool SwCursorShell::Pop(PopMode const eDelete) // the successor becomes the current one if (m_pStackCursor->GetNext() != m_pStackCursor) { - pTmp = dynamic_cast<SwShellCursor*>(m_pStackCursor->GetNext()); + pTmp = m_pStackCursor->GetNext(); } if (PopMode::DeleteStack == eDelete) @@ -2095,7 +2094,7 @@ void SwCursorShell::Combine() SwShellCursor * pTmp = nullptr; if (m_pStackCursor->GetNext() != m_pStackCursor) { - pTmp = dynamic_cast<SwShellCursor*>(m_pStackCursor->GetNext()); + pTmp = m_pStackCursor->GetNext(); } delete m_pCurrentCursor; m_pCurrentCursor = m_pStackCursor; |