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

simplify SwClient::First()

Change-Id: I6c0f5214bbdc34abb9d94795f4f60b58c178a368
üst f4ebba6a
......@@ -434,20 +434,13 @@ SwClient* SwClientIter::First( TypeId nType )
{
aSrchId = nType;
GoStart();
if( pAct )
do {
if( pAct->IsA( aSrchId ) )
break;
if( pDelNext == pAct )
{
pAct = static_cast<SwClient*>(pAct->m_pRight);
pDelNext = pAct;
}
else
pAct = pDelNext;
} while( pAct );
return pAct;
while( pDelNext )
{
if( pDelNext->IsA( aSrchId ) )
break;
pDelNext = static_cast<SwClient*>(pDelNext->m_pRight);
}
return pAct = pDelNext;
}
SwClient* SwClientIter::Last( 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