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()
StartAllAction();
SwViewShell::CalcLayout();
SwViewShell *pSh = this;
do
for(SwViewShell& rCurrentShell : GetRingContainer())
{
if ( pSh->GetWin() )
pSh->GetWin()->Invalidate();
pSh = static_cast<SwViewShell*>(pSh->GetNext());
} while ( pSh != this );
if ( rCurrentShell.GetWin() )
rCurrentShell.GetWin()->Invalidate();
}
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