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

simplify SwClient::First() with Next()

Change-Id: If66ab27cbfe47f1cbeb0ed6a340459a8911af65a
üst 43d870a0
...@@ -434,13 +434,10 @@ SwClient* SwClientIter::First( TypeId nType ) ...@@ -434,13 +434,10 @@ SwClient* SwClientIter::First( TypeId nType )
{ {
aSrchId = nType; aSrchId = nType;
GoStart(); GoStart();
while( pDelNext ) if(!pDelNext)
{ return nullptr;
if( pDelNext->IsA( aSrchId ) ) pAct = nullptr;
break; return Next();
pDelNext = static_cast<SwClient*>(pDelNext->m_pRight);
}
return pAct = pDelNext;
} }
SwClient* SwClientIter::Last( TypeId nType ) 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