diff options
Diffstat (limited to 'include/editeng/twolinesitem.hxx')
-rw-r--r-- | include/editeng/twolinesitem.hxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/include/editeng/twolinesitem.hxx b/include/editeng/twolinesitem.hxx index 6386844ca466..2833d49e9df6 100644 --- a/include/editeng/twolinesitem.hxx +++ b/include/editeng/twolinesitem.hxx @@ -36,6 +36,11 @@ public: sal_uInt16 nId ); virtual ~SvxTwoLinesItem() override; + SvxTwoLinesItem(SvxTwoLinesItem const &) = default; + SvxTwoLinesItem(SvxTwoLinesItem &&) = default; + SvxTwoLinesItem & operator =(SvxTwoLinesItem const &) = default; + SvxTwoLinesItem & operator =(SvxTwoLinesItem &&) = default; + // "pure virtual Methods" from SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; @@ -50,14 +55,6 @@ public: virtual sal_uInt16 GetVersion( sal_uInt16 nFFVer ) const override; - SvxTwoLinesItem& operator=( const SvxTwoLinesItem& rCpy ) - { - SetValue( rCpy.GetValue() ); - SetStartBracket( rCpy.GetStartBracket() ); - SetEndBracket( rCpy.GetEndBracket() ); - return *this; - } - bool GetValue() const { return bOn; } void SetValue( bool bFlag ) { bOn = bFlag; } |