summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-03 19:04:05 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-12-04 01:10:03 +0100
commit0426f2946148833aa92d2ba4e2274e18db6f1a28 (patch)
treef4422141e180d76dbfe7a6b008d8ba926801107b /sw
parent23c950ec58c32bca814c8fee946e3aa028bbc679 (diff)
use C++11 iteration
Change-Id: I4ca471d9d849b43a60cb34ac81baf023e30891e1
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/viewsh.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 5fc9560b03cd..4351ba5b8692 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -645,13 +645,11 @@ void SwViewShell::LayoutIdle()
return;
//No idle when printing is going on.
- SwViewShell *pSh = this;
- do
- { if ( !pSh->GetWin() )
+ for(SwViewShell& rSh : GetRingContainer())
+ {
+ if ( !rSh.GetWin() )
return;
- pSh = static_cast<SwViewShell*>(pSh->GetNext());
-
- } while ( pSh != this );
+ }
SET_CURR_SHELL( this );