summaryrefslogtreecommitdiff
path: root/sw/source/uibase/config/cfgitems.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-19 12:47:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-20 07:55:30 +0000
commit8a2149c1059c70d67b4897e8a7751cf028a5136b (patch)
tree10d01599b5b5b2ea1d361c32d438cf47371f21ae /sw/source/uibase/config/cfgitems.cxx
parent1b89a57aa5ac4faf59bc1e13eb1e0cad9933bacc (diff)
clang-tidy misc-assign-operator-signature
Change-Id: I2953a88d9e2f5923732865ef17615d5928ac5f5f Reviewed-on: https://gerrit.libreoffice.org/25154 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/uibase/config/cfgitems.cxx')
-rw-r--r--sw/source/uibase/config/cfgitems.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/uibase/config/cfgitems.cxx b/sw/source/uibase/config/cfgitems.cxx
index 98122681b35d..b4605a755723 100644
--- a/sw/source/uibase/config/cfgitems.cxx
+++ b/sw/source/uibase/config/cfgitems.cxx
@@ -88,7 +88,7 @@ bool SwDocDisplayItem::operator==( const SfxPoolItem& rAttr ) const
bShowHiddenPara == rItem.bShowHiddenPara );
}
-void SwDocDisplayItem::operator=( const SwDocDisplayItem& rDocDisplayItem)
+SwDocDisplayItem& SwDocDisplayItem::operator=( const SwDocDisplayItem& rDocDisplayItem)
{
bParagraphEnd = rDocDisplayItem.bParagraphEnd ;
bTab = rDocDisplayItem.bTab ;
@@ -99,6 +99,7 @@ void SwDocDisplayItem::operator=( const SwDocDisplayItem& rDocDisplayItem)
bFieldHiddenText = rDocDisplayItem.bFieldHiddenText ;
bManualBreak = rDocDisplayItem.bManualBreak ;
bShowHiddenPara = rDocDisplayItem.bShowHiddenPara ;
+ return *this;
}
void SwDocDisplayItem::FillViewOptions( SwViewOption& rVOpt) const
@@ -171,7 +172,7 @@ bool SwElemItem::operator==( const SfxPoolItem& rAttr ) const
bNotes == rItem.bNotes );
}
-void SwElemItem::operator=( const SwElemItem& rElemItem)
+SwElemItem& SwElemItem::operator=( const SwElemItem& rElemItem)
{
bVertRuler = rElemItem. bVertRuler ;
bVertRulerRight = rElemItem. bVertRulerRight ;
@@ -182,6 +183,7 @@ void SwElemItem::operator=( const SwElemItem& rElemItem)
bDrawing = rElemItem.bDrawing ;
bFieldName = rElemItem.bFieldName ;
bNotes = rElemItem.bNotes ;
+ return *this;
}
void SwElemItem::FillViewOptions( SwViewOption& rVOpt) const
@@ -267,10 +269,11 @@ bool SwShadowCursorItem::operator==( const SfxPoolItem& rCmp ) const
GetMode() == static_cast<const SwShadowCursorItem&>(rCmp).GetMode();
}
-void SwShadowCursorItem::operator=( const SwShadowCursorItem& rCpy )
+SwShadowCursorItem& SwShadowCursorItem::operator=( const SwShadowCursorItem& rCpy )
{
SetOn( rCpy.IsOn() );
SetMode( rCpy.GetMode() );
+ return *this;
}
void SwShadowCursorItem::FillViewOptions( SwViewOption& rVOpt ) const