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

use C++11 iteration

Change-Id: I4ca471d9d849b43a60cb34ac81baf023e30891e1
üst 23c950ec
......@@ -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 );
......
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