Kaydet (Commit) da2c5253 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

use C++11 iteration

Change-Id: Ibf34d6653db6141dc365759a660208896b9bf553
üst 2b98706f
...@@ -95,14 +95,11 @@ void SwEditShell::CalcLayout() ...@@ -95,14 +95,11 @@ void SwEditShell::CalcLayout()
StartAllAction(); StartAllAction();
SwViewShell::CalcLayout(); SwViewShell::CalcLayout();
SwViewShell *pSh = this; for(SwViewShell& rCurrentShell : GetRingContainer())
do
{ {
if ( pSh->GetWin() ) if ( rCurrentShell.GetWin() )
pSh->GetWin()->Invalidate(); rCurrentShell.GetWin()->Invalidate();
pSh = static_cast<SwViewShell*>(pSh->GetNext()); }
} while ( pSh != this );
EndAllAction(); EndAllAction();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment