summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-03 17:54:59 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-04 01:09:51 +0100
commit42981b6d8ada48ce9f7144f23f5aa5751cc02664 (patch)
treefeb190cab9b780adf08061339440e1d23f46e111 /sw
parentdd53ee608dd06ef4db95e36f6786a95df21517a0 (diff)
use C++11 iteration
Change-Id: I88510a9a0569ce9241ea28ace9eaa5ce7700990b
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/fly.cxx11
1 files changed, 4 insertions, 7 deletions
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<SwViewShell*>(pSh->GetNext());
-
- } while ( pSh != p1St );
+ if( rCurrentShell.HasDrawView() )
+ rCurrentShell.Imp()->GetDrawView()->UnmarkAll();
+ }
}
}