summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-03 18:57:56 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-04 01:10:01 +0100
commit7cfba9f7154ab9914ac18f98f7020c5c5b776d2d (patch)
tree8936743d08bf8974d20defe34380479cfed32f1c /sw
parent0794cbf28e2cc5d548853d92b23be85615b2416a (diff)
use C++11 iteration
Change-Id: I4cc45d4391ad724919b2253ca32b4cafa53c796a
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/viewimp.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/sw/source/core/view/viewimp.cxx b/sw/source/core/view/viewimp.cxx
index 174e65856b50..2010f1aa5d87 100644
--- a/sw/source/core/view/viewimp.cxx
+++ b/sw/source/core/view/viewimp.cxx
@@ -382,17 +382,13 @@ void SwViewImp::_InvalidateAccessibleParaFlowRelation( const SwTxtFrm* _pFromTxt
/// invalidate text selection for paragraphs
void SwViewImp::_InvalidateAccessibleParaTextSelection()
{
- SwViewShell* pVSh = GetShell();
- SwViewShell* pTmp = pVSh;
- do
+ for(SwViewShell& rTmp : GetShell()->GetRingContainer())
{
- if ( pTmp->Imp()->IsAccessible() )
+ if ( rTmp.Imp()->IsAccessible() )
{
- pTmp->Imp()->GetAccessibleMap().InvalidateTextSelectionOfAllParas();
+ rTmp.Imp()->GetAccessibleMap().InvalidateTextSelectionOfAllParas();
}
-
- pTmp = static_cast<SwViewShell *>(pTmp->GetNext());
- } while ( pTmp != pVSh );
+ }
}
/// invalidate attributes for paragraphs