diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-03 18:54:55 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-04 01:09:59 +0100 |
commit | 548a3c8fb5a2a05589159bf4fbde5b37601b728a (patch) | |
tree | dd84a06d40b42bd32a0480c45f8071a47fefb25f /sw | |
parent | fb793876f6c25a4c55fbc2423055d3fd5d49b174 (diff) |
use C++11 iteration
Change-Id: I1b72decd1ef34575508d39c9ee09bb6e5c3f108b
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/view/viewimp.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/source/core/view/viewimp.cxx b/sw/source/core/view/viewimp.cxx index a1db8032a586..998a1a3fe61a 100644 --- a/sw/source/core/view/viewimp.cxx +++ b/sw/source/core/view/viewimp.cxx @@ -310,14 +310,11 @@ void SwViewImp::MoveAccessible( const SwFrm *pFrm, const SdrObject *pObj, void SwViewImp::InvalidateAccessibleFrmContent( const SwFrm *pFrm ) { OSL_ENSURE( pFrm->IsAccessibleFrm(), "frame is not accessible" ); - SwViewShell *pVSh = GetShell(); - SwViewShell *pTmp = pVSh; - do + for(SwViewShell& rTmp : GetShell()->GetRingContainer()) { - if( pTmp->Imp()->IsAccessible() ) - pTmp->Imp()->GetAccessibleMap().InvalidateContent( pFrm ); - pTmp = static_cast<SwViewShell *>(pTmp->GetNext()); - } while ( pTmp != pVSh ); + if( rTmp.Imp()->IsAccessible() ) + rTmp.Imp()->GetAccessibleMap().InvalidateContent( pFrm ); + } } void SwViewImp::InvalidateAccessibleCursorPosition( const SwFrm *pFrm ) |