summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-12 22:39:06 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-14 02:23:36 +0100
commit81618ec397128e4853c9aa6ce4fcd850ff11e876 (patch)
tree050afb4e68bab217765789415a1983bdc1ec6ba3
parent56a335c259db8aea74452bd7a88ac37c6e5635b4 (diff)
simplify SwClient::GoStart()
Change-Id: Ic1916f86f1a3797d37a6102aa32ca7d2bd92f78e
-rw-r--r--sw/source/core/attr/calbck.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/sw/source/core/attr/calbck.cxx b/sw/source/core/attr/calbck.cxx
index b3cd51bd5b89..835a2d9e49e7 100644
--- a/sw/source/core/attr/calbck.cxx
+++ b/sw/source/core/attr/calbck.cxx
@@ -413,14 +413,11 @@ SwClient* SwClientIter::operator++()
SwClient* SwClientIter::GoStart()
{
- pAct = const_cast<SwClient*>(rRoot.GetDepends());
- if( pAct )
- {
- while( pAct->m_pLeft )
- pAct = static_cast<SwClient*>(pAct->m_pLeft);
- }
- pDelNext = pAct;
- return pAct;
+ pDelNext = const_cast<SwClient*>(rRoot.GetDepends());
+ if(pDelNext)
+ while( pDelNext->m_pLeft )
+ pDelNext = static_cast<SwClient*>(pDelNext->m_pLeft);
+ return pAct = pDelNext;
}
SwClient* SwClientIter::GoEnd()