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()
void SwEditShell::StartAllAction()
{
SwViewShell *pSh = this;
do {
if( pSh->IsA( TYPE( SwEditShell ) ) )
static_cast<SwEditShell*>(pSh)->StartAction();
for(SwViewShell& rCurrentShell : GetRingContainer())
{
if( rCurrentShell.IsA( TYPE( SwEditShell ) ) )
static_cast<SwEditShell*>(&rCurrentShell)->StartAction();
else
pSh->StartAction();
pSh = static_cast<SwViewShell *>(pSh->GetNext());
} while(pSh != this);
rCurrentShell.StartAction();
}
}
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