summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-13 01:06:57 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-14 02:23:40 +0100
commited02fd49b92d0235e84346dcfbd6850ddbbd0d87 (patch)
treed41c3f628f0857b10d294288d27350f275d3792e /sw
parentb76943b02049b32e25dd82bc93c9d8d143245992 (diff)
GoStart() GoEnd() consistency
Change-Id: I4386c9594db950a40ddbfd25fb5383d7ed4b877b
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/attr/calbck.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/core/attr/calbck.cxx b/sw/source/core/attr/calbck.cxx
index 7286bb4ed2c5..d066f7fab24e 100644
--- a/sw/source/core/attr/calbck.cxx
+++ b/sw/source/core/attr/calbck.cxx
@@ -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;