diff options
-rw-r--r-- | compilerplugins/clang/test/buriedassign.cxx | 1 | ||||
-rw-r--r-- | emfio/inc/mtftools.hxx | 3 | ||||
-rw-r--r-- | include/svx/rulritem.hxx | 4 | ||||
-rw-r--r-- | sc/inc/dpdimsave.hxx | 1 | ||||
-rw-r--r-- | sw/inc/bparr.hxx | 2 | ||||
-rw-r--r-- | sw/source/filter/inc/msfilter.hxx | 2 |
6 files changed, 13 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/buriedassign.cxx b/compilerplugins/clang/test/buriedassign.cxx index 9cbdbfc49df9..d75c519f4c4a 100644 --- a/compilerplugins/clang/test/buriedassign.cxx +++ b/compilerplugins/clang/test/buriedassign.cxx @@ -43,6 +43,7 @@ struct MyInt : x(i) { } + MyInt(MyInt const&) = default; MyInt& operator=(MyInt const&) = default; MyInt& operator=(int) { return *this; } bool operator<(MyInt const& other) const { return x < other.x; } diff --git a/emfio/inc/mtftools.hxx b/emfio/inc/mtftools.hxx index 2d31fe4ef4ad..cd2484606f07 100644 --- a/emfio/inc/mtftools.hxx +++ b/emfio/inc/mtftools.hxx @@ -315,7 +315,10 @@ namespace emfio struct EMFIO_DLLPUBLIC GDIObj { + GDIObj() = default; + GDIObj(GDIObj const &) = default; virtual ~GDIObj() = default; // Polymorphic base class + GDIObj & operator =(GDIObj const &) = default; }; struct UNLESS_MERGELIBS(EMFIO_DLLPUBLIC) WinMtfFontStyle final : GDIObj diff --git a/include/svx/rulritem.hxx b/include/svx/rulritem.hxx index 4f5d78083809..9d24ecd6088d 100644 --- a/include/svx/rulritem.hxx +++ b/include/svx/rulritem.hxx @@ -46,6 +46,7 @@ public: static SfxPoolItem* CreateDefault(); SvxLongLRSpaceItem(tools::Long lLeft, tools::Long lRight, sal_uInt16 nId); SvxLongLRSpaceItem(); + SvxLongLRSpaceItem(SvxLongLRSpaceItem const &) = default; tools::Long GetLeft() const { return mlLeft;} tools::Long GetRight() const { return mlRight;} @@ -75,6 +76,7 @@ public: static SfxPoolItem* CreateDefault(); SvxLongULSpaceItem(tools::Long lUpper, tools::Long lLower, sal_uInt16 nId); SvxLongULSpaceItem(); + SvxLongULSpaceItem(SvxLongULSpaceItem const &) = default; tools::Long GetUpper() const { return mlLeft;} tools::Long GetLower() const { return mlRight;} @@ -105,6 +107,7 @@ public: static SfxPoolItem* CreateDefault(); SvxPagePosSizeItem(const Point &rPos, tools::Long lWidth, tools::Long lHeight); SvxPagePosSizeItem(); + SvxPagePosSizeItem(SvxPagePosSizeItem const &) = default; const Point &GetPos() const { return aPos; } tools::Long GetWidth() const { return lWidth; } @@ -215,6 +218,7 @@ public: static SfxPoolItem* CreateDefault(); SvxObjectItem(tools::Long nStartX, tools::Long nEndX, tools::Long nStartY, tools::Long nEndY); + SvxObjectItem(SvxObjectItem const &) = default; tools::Long GetStartX() const { return nStartX;} tools::Long GetEndX() const { return nEndX;} diff --git a/sc/inc/dpdimsave.hxx b/sc/inc/dpdimsave.hxx index a44563365054..b79e390016a3 100644 --- a/sc/inc/dpdimsave.hxx +++ b/sc/inc/dpdimsave.hxx @@ -164,6 +164,7 @@ class SC_DLLPUBLIC ScDPDimensionSaveData { public: ScDPDimensionSaveData(); + ScDPDimensionSaveData(ScDPDimensionSaveData const &) = default; bool operator==( const ScDPDimensionSaveData& r ) const; diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx index 0730a5c5a61b..d28e964685d7 100644 --- a/sw/inc/bparr.hxx +++ b/sw/inc/bparr.hxx @@ -37,7 +37,9 @@ class BigPtrEntry sal_uInt16 m_nOffset; public: BigPtrEntry() : m_pBlock(nullptr), m_nOffset(0) {} + BigPtrEntry(BigPtrEntry const &) = default; virtual ~BigPtrEntry() = default; + BigPtrEntry & operator =(BigPtrEntry const &) = default; inline sal_uLong GetPos() const; inline BigPtrArray& GetArray() const; diff --git a/sw/source/filter/inc/msfilter.hxx b/sw/source/filter/inc/msfilter.hxx index c0ebc8ea6be7..59ede5ac2a64 100644 --- a/sw/source/filter/inc/msfilter.hxx +++ b/sw/source/filter/inc/msfilter.hxx @@ -315,6 +315,7 @@ namespace sw SwDoc &mrDoc; public: explicit SetInDocAndDelete(SwDoc &rDoc) : mrDoc(rDoc) {} + SetInDocAndDelete(SetInDocAndDelete const &) = default; void operator()(std::unique_ptr<SwFltStackEntry> & pEntry); private: SetInDocAndDelete& operator=(const SetInDocAndDelete&) = delete; @@ -331,6 +332,7 @@ namespace sw if (pEntry->bOpen) pEntry->SetEndPos(mrPos); } + SetEndIfOpen(SetEndIfOpen const &) = default; private: SetEndIfOpen& operator=(const SetEndIfOpen&) = delete; }; |