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

GoStart() GoEnd() consistency

Change-Id: I4386c9594db950a40ddbfd25fb5383d7ed4b877b
üst b76943b0
......@@ -413,8 +413,7 @@ SwClient* SwClientIter::operator++()
SwClient* SwClientIter::GoStart()
{
pDelNext = const_cast<SwClient*>(rRoot.GetDepends());
if(pDelNext)
if(pDelNext = const_cast<SwClient*>(rRoot.GetDepends()))
while( pDelNext->m_pLeft )
pDelNext = static_cast<SwClient*>(pDelNext->m_pLeft);
return pAct = pDelNext;
......@@ -422,9 +421,7 @@ SwClient* SwClientIter::GoStart()
SwClient* SwClientIter::GoEnd()
{
if(!pDelNext)
pDelNext = const_cast<SwClient*>(rRoot.GetDepends());
if(pDelNext)
if(pDelNext = const_cast<SwClient*>(rRoot.GetDepends()))
while( pDelNext->m_pRight )
pDelNext = static_cast<SwClient*>(pDelNext->m_pRight);
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