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

use C++11 iteration

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