diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-03 18:56:11 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-04 01:10:00 +0100 |
commit | f221da28f676b9f72364394cc52dc49b04cbc17d (patch) | |
tree | 90dc0571feef90c131df28e7173da91b3ba84a54 /sw | |
parent | 65a1a6afd3474f2b56f1d42cefeed971411b0d61 (diff) |
use C++11 iteration
Change-Id: I27d2c8caed61096d47970fba2104b61b0141997c
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 7355257a977d..9c9f2860f86b 100644 --- a/sw/source/core/view/viewimp.cxx +++ b/sw/source/core/view/viewimp.cxx @@ -343,15 +343,12 @@ void SwViewImp::InvalidateAccessibleEditableState( bool bAllShells, void SwViewImp::InvalidateAccessibleRelationSet( const SwFlyFrm *pMaster, const SwFlyFrm *pFollow ) { - SwViewShell *pVSh = GetShell(); - SwViewShell *pTmp = pVSh; - do + for(SwViewShell& rTmp : GetShell()->GetRingContainer()) { - if( pTmp->Imp()->IsAccessible() ) - pTmp->Imp()->GetAccessibleMap().InvalidateRelationSet( pMaster, + if( rTmp.Imp()->IsAccessible() ) + rTmp.Imp()->GetAccessibleMap().InvalidateRelationSet( pMaster, pFollow ); - pTmp = static_cast<SwViewShell *>(pTmp->GetNext()); - } while ( pTmp != pVSh ); + } } /// invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs |