More aggressive Clang 13 trunk -Werror,-Wdeprecated-copy[-with-dtor]
...since
<abf3ca61e3
>
"[Diagnostics] Restore -Wdeprecated warning when user-declared copy assignment
operator is defined as deleted (PR45634)"
Change-Id: I43ae8a620915ad211a1f21ecf89b6955b7d2faaf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114674
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -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; }
|
||||
|
@@ -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
|
||||
|
@@ -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;}
|
||||
|
@@ -164,6 +164,7 @@ class SC_DLLPUBLIC ScDPDimensionSaveData
|
||||
{
|
||||
public:
|
||||
ScDPDimensionSaveData();
|
||||
ScDPDimensionSaveData(ScDPDimensionSaveData const &) = default;
|
||||
|
||||
bool operator==( const ScDPDimensionSaveData& r ) const;
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user