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

simplify SwClient::GoEnd()

Change-Id: I6c2d55c8b748946543ddce72130f900b738418ef
üst 81618ec3
...@@ -422,16 +422,12 @@ SwClient* SwClientIter::GoStart() ...@@ -422,16 +422,12 @@ SwClient* SwClientIter::GoStart()
SwClient* SwClientIter::GoEnd() SwClient* SwClientIter::GoEnd()
{ {
pAct = pDelNext; if(!pDelNext)
if( !pAct ) pDelNext = const_cast<SwClient*>(rRoot.GetDepends());
pAct = const_cast<SwClient*>(rRoot.GetDepends()); if(pDelNext)
if( pAct ) while( pDelNext->m_pRight )
{ pDelNext = static_cast<SwClient*>(pDelNext->m_pRight);
while( pAct->m_pRight ) return pAct = pDelNext;
pAct = static_cast<SwClient*>(pAct->m_pRight);
}
pDelNext = pAct;
return pAct;
} }
SwClient* SwClientIter::First( TypeId nType ) SwClient* SwClientIter::First( TypeId nType )
......
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