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

use C++11 iteration

Change-Id: Iaf050d7b574864c27b84919aa3a04eadd25312e0
üst 12f2bcae
......@@ -2590,13 +2590,12 @@ SwViewShell *SwHTMLParser::CallEndAction( bool bChkAction, bool bChkPtr )
if( bSetCrsr )
{
// an allen CrsrEditShells die Cursor auf den Doc-Anfang setzen
SwViewShell *pSh = pActionViewShell;
do {
if( pSh->IsA( TYPE( SwCrsrShell ) ) )
static_cast<SwCrsrShell*>(pSh)->SttEndDoc(true);
pSh = static_cast<SwViewShell *>(pSh->GetNext());
} while( pSh != pActionViewShell );
// set the cursor to the doc begin in all CrsrEditShells
for(SwViewShell& rSh : pActionViewShell->GetRingContainer())
{
if( rSh.IsA( TYPE( SwCrsrShell ) ) )
static_cast<SwCrsrShell*>(&rSh)->SttEndDoc(true);
}
bSetCrsr = false;
}
......
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