diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-03 19:04:55 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-04 01:10:03 +0100 |
commit | 7cc956c554c74525d63b9eb98083b2811a9170f6 (patch) | |
tree | f418ff3383a8f64e09b452bcf2adac90ab70b490 /sw/source | |
parent | 0426f2946148833aa92d2ba4e2274e18db6f1a28 (diff) |
use C++11 iteration
Change-Id: I388df85bf547fd159741938307db6e04e6f0a336
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index 4351ba5b8692..23b76571c274 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -941,14 +941,11 @@ void SwViewShell::CalcLayout() void SwViewShell::SetFirstVisPageInvalid() { - SwViewShell *pSh = this; - do + for(SwViewShell& rSh : GetRingContainer()) { - if ( pSh->Imp() ) - pSh->Imp()->SetFirstVisPageInvalid(); - pSh = static_cast<SwViewShell*>(pSh->GetNext()); - - } while ( pSh != this ); + if ( rSh.Imp() ) + rSh.Imp()->SetFirstVisPageInvalid(); + } } void SwViewShell::SizeChgNotify() |