diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-03 18:53:31 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-04 01:09:58 +0100 |
commit | 5326f670ff0e8a442fa3f54e787d90b2bc489ff8 (patch) | |
tree | 50e608cd2587238101a077df7edfe9d2efdf2780 /sw | |
parent | 6e778991147395b7385decf797c75051da08e29d (diff) |
use C++11 iteration
Change-Id: I859453d7b18bd5f4af7bad25bd0439c1f926b02f
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 1a569a389536..a1d37869f606 100644 --- a/sw/source/core/view/viewimp.cxx +++ b/sw/source/core/view/viewimp.cxx @@ -288,14 +288,11 @@ void SwViewImp::DisposeAccessible( const SwFrm *pFrm, bool bRecursive ) { OSL_ENSURE( !pFrm || 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().Dispose( pFrm, pObj, 0, bRecursive ); - pTmp = static_cast<SwViewShell *>(pTmp->GetNext()); - } while ( pTmp != pVSh ); + if( rTmp.Imp()->IsAccessible() ) + rTmp.Imp()->GetAccessibleMap().Dispose( pFrm, pObj, 0, bRecursive ); + } } void SwViewImp::MoveAccessible( const SwFrm *pFrm, const SdrObject *pObj, |