summaryrefslogtreecommitdiff
path: root/sw/inc/calbck.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-17 09:00:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-17 13:03:38 +0200
commit9a3b47afab1750eba0451d59a8bac53302d85b2f (patch)
treeb2e795e03203879b30fcf391f3cbadd28f04f645 /sw/inc/calbck.hxx
parent0b2ddcda730897cb5b2801731f03191d77409273 (diff)
loplugin:buriedassign in sw(1)
Change-Id: Ifaab4ab1bde3ff8236b51244098c81e6f460fbd5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92408 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/calbck.hxx')
-rw-r--r--sw/inc/calbck.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index e0f71b8e9229..fc17b826f965 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -312,7 +312,8 @@ namespace sw
if(m_pPosition)
while( m_pPosition->m_pLeft )
m_pPosition = m_pPosition->m_pLeft;
- return m_pCurrent = m_pPosition;
+ m_pCurrent = m_pPosition;
+ return m_pCurrent;
}
~ClientIteratorBase() override
{
@@ -326,7 +327,7 @@ namespace sw
// SwModify::Add() asserts this
bool IsChanged() const { return m_pPosition != m_pCurrent; }
// ensures the iterator to point at a current client
- WriterListener* Sync() { return m_pCurrent = m_pPosition; }
+ WriterListener* Sync() { m_pCurrent = m_pPosition; return m_pCurrent; }
};
}