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

use C++11 iteration

Change-Id: I1d5a4f21272f0b42f2f89ebab39d39e5c9e0a181
üst cd187f9d
......@@ -81,14 +81,13 @@ void SwEditShell::StartAllAction()
void SwEditShell::EndAllAction()
{
SwViewShell *pSh = this;
do {
if( pSh->IsA( TYPE( SwEditShell ) ) )
static_cast<SwEditShell*>(pSh)->EndAction();
for(SwViewShell& rCurrentShell : GetRingContainer())
{
if( rCurrentShell.IsA( TYPE( SwEditShell ) ) )
static_cast<SwEditShell*>(&rCurrentShell)->EndAction();
else
pSh->EndAction();
pSh = static_cast<SwViewShell *>(pSh->GetNext());
} while(pSh != this);
rCurrentShell.EndAction();
}
}
void SwEditShell::CalcLayout()
......
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