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

simplify SwClient::Next()

Change-Id: I543786f6bb325ba531bf8600ca5b9717efd4535c
üst 9a74f77c
...@@ -458,19 +458,15 @@ SwClient* SwClientIter::Last( TypeId nType ) ...@@ -458,19 +458,15 @@ SwClient* SwClientIter::Last( TypeId nType )
SwClient* SwClientIter::Next() SwClient* SwClientIter::Next()
{ {
do { if( pDelNext == pAct )
if( pDelNext == pAct ) pDelNext = static_cast<SwClient*>(pDelNext->m_pRight);
{ while(pDelNext)
pAct = static_cast<SwClient*>(pAct->m_pRight); {
pDelNext = pAct; if( pDelNext->IsA( aSrchId ) )
}
else
pAct = pDelNext;
if( pAct && pAct->IsA( aSrchId ) )
break; break;
} while( pAct ); pDelNext = static_cast<SwClient*>(pDelNext->m_pRight);
return pAct; }
return pAct = pDelNext;
} }
SwClient* SwClientIter::Previous() SwClient* SwClientIter::Previous()
......
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