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 )
SwClient* SwClientIter::Next()
{
do {
if( pDelNext == pAct )
{
pAct = static_cast<SwClient*>(pAct->m_pRight);
pDelNext = pAct;
}
else
pAct = pDelNext;
if( pAct && pAct->IsA( aSrchId ) )
if( pDelNext == pAct )
pDelNext = static_cast<SwClient*>(pDelNext->m_pRight);
while(pDelNext)
{
if( pDelNext->IsA( aSrchId ) )
break;
} while( pAct );
return pAct;
pDelNext = static_cast<SwClient*>(pDelNext->m_pRight);
}
return pAct = pDelNext;
}
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