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

simplify SwClient::Next() more

Change-Id: I7441c17c506f37d2de3658c083179a652f89fcb6
üst d51ba441
...@@ -453,12 +453,8 @@ SwClient* SwClientIter::Next() ...@@ -453,12 +453,8 @@ SwClient* SwClientIter::Next()
{ {
if( pDelNext == pAct ) if( pDelNext == pAct )
pDelNext = static_cast<SwClient*>(pDelNext->m_pRight); pDelNext = static_cast<SwClient*>(pDelNext->m_pRight);
while(pDelNext) while(pDelNext && !pDelNext->IsA( aSrchId ) )
{
if( pDelNext->IsA( aSrchId ) )
break;
pDelNext = static_cast<SwClient*>(pDelNext->m_pRight); pDelNext = static_cast<SwClient*>(pDelNext->m_pRight);
}
return pAct = pDelNext; return pAct = pDelNext;
} }
......
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