diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-11-12 20:00:46 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-13 07:11:39 +0100 |
commit | c8c5072a2f20d58807c233a1b62ded406931db78 (patch) | |
tree | 9055dd867cb21214c8911eecfa2933a8b4361246 /include | |
parent | 8d4a44d176fc7e80d6c5f13b1e73069967b9593b (diff) |
clang-tidy modernize-use-equals-default in editeng
remove default-able copy constructors/assignments
and a non-virtual default dtor.
Change-Id: I3fcc23a480031a9ede00ea22ae8f5ac5e892fd9c
Reviewed-on: https://gerrit.libreoffice.org/44657
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/borderline.hxx | 3 | ||||
-rw-r--r-- | include/editeng/colritem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/flstitem.hxx | 1 | ||||
-rw-r--r-- | include/editeng/formatbreakitem.hxx | 4 | ||||
-rw-r--r-- | include/editeng/optitems.hxx | 1 | ||||
-rw-r--r-- | include/editeng/paragraphdata.hxx | 3 | ||||
-rw-r--r-- | include/editeng/swafopt.hxx | 2 | ||||
-rw-r--r-- | include/editeng/tstpitem.hxx | 1 | ||||
-rw-r--r-- | include/editeng/twolinesitem.hxx | 1 |
9 files changed, 0 insertions, 18 deletions
diff --git a/include/editeng/borderline.hxx b/include/editeng/borderline.hxx index 848c4308ce33..b1133825b842 100644 --- a/include/editeng/borderline.hxx +++ b/include/editeng/borderline.hxx @@ -161,9 +161,6 @@ public: SvxBorderLineStyle nStyle = SvxBorderLineStyle::SOLID, Color (*pColorOutFn)( Color ) = &darkColor, Color (*pColorInFn)( Color ) = &darkColor ); - SvxBorderLine( const SvxBorderLine& r ); - - SvxBorderLine& operator=( const SvxBorderLine& r ); const Color& GetColor() const { return aColor; } Color GetColorOut( bool bLeftOrTop = true ) const; diff --git a/include/editeng/colritem.hxx b/include/editeng/colritem.hxx index 0e4c60702d0c..d58ee5866817 100644 --- a/include/editeng/colritem.hxx +++ b/include/editeng/colritem.hxx @@ -40,7 +40,6 @@ public: explicit SvxColorItem(const sal_uInt16 nId); SvxColorItem(const Color& aColor, const sal_uInt16 nId); SvxColorItem(SvStream& rStream, const sal_uInt16 nId); - SvxColorItem(const SvxColorItem& rCopy); virtual ~SvxColorItem() override; // "pure virtual Methods" from SfxPoolItem @@ -78,7 +77,6 @@ class EDITENG_DLLPUBLIC SvxBackgroundColorItem : public SvxColorItem SvxBackgroundColorItem(const sal_uInt16 nId); SvxBackgroundColorItem(const Color& rCol, const sal_uInt16 nId); - SvxBackgroundColorItem(const SvxBackgroundColorItem& rCopy); virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override; virtual bool QueryValue(css::uno::Any& rVal, sal_uInt8 nMemberId = 0) const override; diff --git a/include/editeng/flstitem.hxx b/include/editeng/flstitem.hxx index 527a38544c0b..72948d94fc70 100644 --- a/include/editeng/flstitem.hxx +++ b/include/editeng/flstitem.hxx @@ -44,7 +44,6 @@ private: public: SvxFontListItem( const FontList* pFontLst, const sal_uInt16 nId ); - SvxFontListItem( const SvxFontListItem& rItem ); virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; diff --git a/include/editeng/formatbreakitem.hxx b/include/editeng/formatbreakitem.hxx index 64ca7346feed..495ff3bc975a 100644 --- a/include/editeng/formatbreakitem.hxx +++ b/include/editeng/formatbreakitem.hxx @@ -40,7 +40,6 @@ public: inline SvxFormatBreakItem( const SvxBreak eBrk /*= SvxBreak::NONE*/, const sal_uInt16 nWhich ); - inline SvxFormatBreakItem( const SvxFormatBreakItem& rBreak ); inline SvxFormatBreakItem& operator=( const SvxFormatBreakItem& rCpy ); // "pure virtual Methods" from SfxPoolItem @@ -69,9 +68,6 @@ inline SvxFormatBreakItem::SvxFormatBreakItem( const SvxBreak eBreak, SfxEnumItem( _nWhich, eBreak ) {} -inline SvxFormatBreakItem::SvxFormatBreakItem( const SvxFormatBreakItem& rBreak ) : - SfxEnumItem( rBreak ) -{} inline SvxFormatBreakItem& SvxFormatBreakItem::operator=( const SvxFormatBreakItem& rBreak ) diff --git a/include/editeng/optitems.hxx b/include/editeng/optitems.hxx index 2ecf91e8e8f1..ccf91408aeb7 100644 --- a/include/editeng/optitems.hxx +++ b/include/editeng/optitems.hxx @@ -33,7 +33,6 @@ class EDITENG_DLLPUBLIC SfxHyphenRegionItem: public SfxPoolItem public: SfxHyphenRegionItem( const sal_uInt16 nId ); - SfxHyphenRegionItem( const SfxHyphenRegionItem& rItem ); virtual bool operator==( const SfxPoolItem& ) const override; virtual bool GetPresentation( SfxItemPresentation ePres, diff --git a/include/editeng/paragraphdata.hxx b/include/editeng/paragraphdata.hxx index 6ea49eb2ddf7..f0e859d6fe1a 100644 --- a/include/editeng/paragraphdata.hxx +++ b/include/editeng/paragraphdata.hxx @@ -34,11 +34,8 @@ protected: bool mbParaIsNumberingRestart; public: - ParagraphData( const ParagraphData& ); ParagraphData(); - ParagraphData& operator=( const ParagraphData& ); - bool operator==(const ParagraphData& rCandidate) const; sal_Int16 getDepth() const { return nDepth; } diff --git a/include/editeng/swafopt.hxx b/include/editeng/swafopt.hxx index 726d8a315350..e8d7d3a6facf 100644 --- a/include/editeng/swafopt.hxx +++ b/include/editeng/swafopt.hxx @@ -115,8 +115,6 @@ struct EDITENG_DLLPUBLIC SvxSwAutoFormatFlags bool bAutoCmpltKeepList : 1; SvxSwAutoFormatFlags(); - SvxSwAutoFormatFlags( const SvxSwAutoFormatFlags& rAFFlags ) { *this = rAFFlags; } - SvxSwAutoFormatFlags& operator=( const SvxSwAutoFormatFlags& ); }; #endif diff --git a/include/editeng/tstpitem.hxx b/include/editeng/tstpitem.hxx index 34c65604bc8c..291e1c72e9fc 100644 --- a/include/editeng/tstpitem.hxx +++ b/include/editeng/tstpitem.hxx @@ -108,7 +108,6 @@ public: const sal_uInt16 nDist, const SvxTabAdjust eAdjst /*= SvxTabAdjust::Default*/, sal_uInt16 nWhich ); - SvxTabStopItem( const SvxTabStopItem& rTSI ); // Returns index of the tab or TAB_NOTFOUND sal_uInt16 GetPos( const SvxTabStop& rTab ) const; diff --git a/include/editeng/twolinesitem.hxx b/include/editeng/twolinesitem.hxx index 7a5fb62cf351..6386844ca466 100644 --- a/include/editeng/twolinesitem.hxx +++ b/include/editeng/twolinesitem.hxx @@ -34,7 +34,6 @@ public: sal_Unicode nStartBracket /*= 0*/, sal_Unicode nEndBracket /*= 0*/, sal_uInt16 nId ); - SvxTwoLinesItem( const SvxTwoLinesItem& rAttr ); virtual ~SvxTwoLinesItem() override; // "pure virtual Methods" from SfxPoolItem |