summaryrefslogtreecommitdiff
path: root/sw/source/core/tox
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-20 16:36:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-21 07:18:38 +0000
commit90d892664a6c49a8ae25a72ddccf54dba9d0e429 (patch)
treed9bb4a7307e349b88a4d528854abb44e4323f563 /sw/source/core/tox
parentea6fdbaeeb51ad695f1c3754b796b7273eb4baad (diff)
loplugin: unused return values
Change-Id: I4eb1f0c9245c04058fd5e47046f043f8840a79c7 Reviewed-on: https://gerrit.libreoffice.org/21628 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/core/tox')
-rw-r--r--sw/source/core/tox/tox.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index 68066b783ba5..1acfb02eeb6a 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -455,7 +455,7 @@ void SwTOXBase::RegisterToTOXType( SwTOXType& rType )
rType.Add( this );
}
-SwTOXBase& SwTOXBase::CopyTOXBase( SwDoc* pDoc, const SwTOXBase& rSource )
+void SwTOXBase::CopyTOXBase( SwDoc* pDoc, const SwTOXBase& rSource )
{
maMSTOCExpression = rSource.maMSTOCExpression;
SwTOXType* pType = const_cast<SwTOXType*>(rSource.GetTOXType());
@@ -507,8 +507,6 @@ SwTOXBase& SwTOXBase::CopyTOXBase( SwDoc* pDoc, const SwTOXBase& rSource )
m_aName = rSource.GetTOXName();
else
m_aName = pDoc->GetUniqueTOXBaseName( *pType, rSource.GetTOXName() );
-
- return *this;
}
// TOX specific functions