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

use C++11 iteration

Change-Id: Ib7f4ebc935da3eeff9fa7fe6ae4fc8d1c9226843
üst a782a3f3
......@@ -106,12 +106,11 @@ void SwFEShell::ParkCursorInTab()
SwPosition aStartPos = *pSwCrsr->GetPoint(), aEndPos = aStartPos;
SwCursor * pTmpCrsr = (SwCursor *) pSwCrsr;
/* Search least and greatest position in current cursor ring.
*/
do
for(SwPaM& rTmpCrsr : pSwCrsr->GetRingContainer())
{
SwCursor* pTmpCrsr = static_cast<SwCursor *>(&rTmpCrsr);
const SwPosition * pPt = pTmpCrsr->GetPoint(),
* pMk = pTmpCrsr->GetMark();
......@@ -127,9 +126,7 @@ void SwFEShell::ParkCursorInTab()
if (*pMk > aEndPos)
aEndPos = *pMk;
pTmpCrsr = static_cast<SwCursor *>( pTmpCrsr->GetNext() );
}
while (pTmpCrsr != pSwCrsr);
KillPams();
......
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