summaryrefslogtreecommitdiffstats
path: root/svx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-02-07 12:46:38 +0100
committerDavid Tardon <dtardon@redhat.com>2013-03-18 12:29:35 +0100
commitd352006d1c746e8d80e210de10ff6ed4476dd94d (patch)
tree4a0ef90d9af1a791cedcca2abf9969db617bef0c /svx
parentguard against self-assignment (diff)
downloadcore-d352006d1c746e8d80e210de10ff6ed4476dd94d.tar.gz
core-d352006d1c746e8d80e210de10ff6ed4476dd94d.zip
use the std signature for operator=
Diffstat (limited to 'svx')
-rw-r--r--svx/source/table/svdotable.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index dad9ff02d878..97396a7f3c7e 100644
--- a/svx/source/table/svdotable.cxx
+++ b/svx/source/table/svdotable.cxx
@@ -234,7 +234,7 @@ public:
void DragEdge( bool mbHorizontal, int nEdge, sal_Int32 nOffset );
- void operator=( const SdrTableObjImpl& rSource );
+ SdrTableObjImpl& operator=( const SdrTableObjImpl& rSource );
// XModifyListener
virtual void SAL_CALL modified( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException);
@@ -283,7 +283,7 @@ void SdrTableObjImpl::init( SdrTableObj* pTable, sal_Int32 nColumns, sal_Int32 n
// -----------------------------------------------------------------------------
-void SdrTableObjImpl::operator=( const SdrTableObjImpl& rSource )
+SdrTableObjImpl& SdrTableObjImpl::operator=( const SdrTableObjImpl& rSource )
{
if (this != &rSource)
{
@@ -313,6 +313,7 @@ void SdrTableObjImpl::operator=( const SdrTableObjImpl& rSource )
mpTableObj->aRect = mpTableObj->maLogicRect;
LayoutTable( mpTableObj->aRect, false, false );
}
+ return *this;
}
// -----------------------------------------------------------------------------