From 42981b6d8ada48ce9f7144f23f5aa5751cc02664 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Wed, 3 Dec 2014 17:54:59 +0100 Subject: use C++11 iteration Change-Id: I88510a9a0569ce9241ea28ace9eaa5ce7700990b --- sw/source/core/layout/fly.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sw') diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx index a43f8202e644..3a05a735a57f 100644 --- a/sw/source/core/layout/fly.cxx +++ b/sw/source/core/layout/fly.cxx @@ -430,15 +430,12 @@ void SwFlyFrm::FinitDrawObj() SwViewShell *p1St = getRootFrm()->GetCurrShell(); if ( p1St ) { - SwViewShell *pSh = p1St; - do + for(SwViewShell& rCurrentShell : p1St->GetRingContainer()) { // At the moment the Drawing can do just do an Unmark on everything, // as the Object was already removed - if( pSh->HasDrawView() ) - pSh->Imp()->GetDrawView()->UnmarkAll(); - pSh = static_cast(pSh->GetNext()); - - } while ( pSh != p1St ); + if( rCurrentShell.HasDrawView() ) + rCurrentShell.Imp()->GetDrawView()->UnmarkAll(); + } } } -- cgit