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

simplify SwClient::Last()

Change-Id: I16639d345fef0fa578d30e43d6283e54bbd52b5b
üst f811ac1a
...@@ -447,18 +447,13 @@ SwClient* SwClientIter::Last( TypeId nType ) ...@@ -447,18 +447,13 @@ SwClient* SwClientIter::Last( TypeId nType )
{ {
aSrchId = nType; aSrchId = nType;
GoEnd(); GoEnd();
if( pAct ) while( pDelNext )
do { {
if( pAct->IsA( aSrchId ) ) if( pDelNext->IsA( aSrchId ) )
break; break;
pDelNext = static_cast<SwClient*>(pDelNext->m_pLeft);
if( pDelNext == pAct ) }
pAct = static_cast<SwClient*>(pAct->m_pLeft); return pAct = pDelNext;
else
pAct = static_cast<SwClient*>(pDelNext->m_pLeft);
pDelNext = pAct;
} while( pAct );
return pAct;
} }
SwClient* SwClientIter::Next() SwClient* SwClientIter::Next()
......
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