[Libreoffice-commits] core.git: compilerplugins/clang emfio/inc include/svx sc/inc sw/inc sw/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Apr 27 06:02:10 UTC 2021


 compilerplugins/clang/test/buriedassign.cxx |    1 +
 emfio/inc/mtftools.hxx                      |    3 +++
 include/svx/rulritem.hxx                    |    4 ++++
 sc/inc/dpdimsave.hxx                        |    1 +
 sw/inc/bparr.hxx                            |    2 ++
 sw/source/filter/inc/msfilter.hxx           |    2 ++
 6 files changed, 13 insertions(+)

New commits:
commit f5a95eb32f32c44359d6e9c26dd97cecb0b207a9
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Apr 26 16:28:30 2021 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Apr 27 08:01:27 2021 +0200

    More aggressive Clang 13 trunk -Werror,-Wdeprecated-copy[-with-dtor]
    
    ...since
    <https://github.com/llvm/llvm-project/commit/abf3ca61e3235681f26d0f527b8e2763dd4c0c62>
    "[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 at redhat.com>

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;
         };


More information about the Libreoffice-commits mailing list