diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-19 12:47:50 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-20 07:55:30 +0000 |
commit | 8a2149c1059c70d67b4897e8a7751cf028a5136b (patch) | |
tree | 10d01599b5b5b2ea1d361c32d438cf47371f21ae /sw/source/uibase/config | |
parent | 1b89a57aa5ac4faf59bc1e13eb1e0cad9933bacc (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')
-rw-r--r-- | sw/source/uibase/config/cfgitems.cxx | 9 | ||||
-rw-r--r-- | sw/source/uibase/config/uinums.cxx | 2 |
2 files changed, 7 insertions, 4 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 diff --git a/sw/source/uibase/config/uinums.cxx b/sw/source/uibase/config/uinums.cxx index 277b8244dd9d..fcb10e9a1705 100644 --- a/sw/source/uibase/config/uinums.cxx +++ b/sw/source/uibase/config/uinums.cxx @@ -140,7 +140,7 @@ SwNumRulesWithName::~SwNumRulesWithName() delete p; } -const SwNumRulesWithName& SwNumRulesWithName::operator=(const SwNumRulesWithName &rCopy) +SwNumRulesWithName& SwNumRulesWithName::operator=(const SwNumRulesWithName &rCopy) { if( this != &rCopy ) { |