[Libreoffice-commits] core.git: include/drawinglayer sc/inc

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Dec 12 12:34:31 UTC 2019


 include/drawinglayer/primitive2d/borderlineprimitive2d.hxx |    5 +++++
 sc/inc/dpdimsave.hxx                                       |    5 +++++
 2 files changed, 10 insertions(+)

New commits:
commit 1336a02a736b7927814701df84fa4671e8c4bcb2
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Dec 12 11:27:49 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Dec 12 13:33:14 2019 +0100

    Silence some Clang 10 trunk -Wdeprecated-copy-dtor
    
    ...by explicitly defaulting the copy/move functions in cases where the user-
    provided dtor is trivial (so could theoretically be replaced with an implicit
    one, cf. <https://gerrit.libreoffice.org/#/c/85032/> "Remove some redundant
    user-provided dtors") but is probably defined out-of-class because the class is
    DLLPUBLIC
    
    Change-Id: Iff5e86654b10c7a03333c06312dc5dfce925d947
    Reviewed-on: https://gerrit.libreoffice.org/85041
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx b/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx
index 1e0b1e2215f5..d3be9c8d4068 100644
--- a/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx
@@ -68,6 +68,11 @@ namespace drawinglayer
 
             ~BorderLine();
 
+            BorderLine(BorderLine const &) = default;
+            BorderLine(BorderLine &&) = default;
+            BorderLine & operator =(BorderLine const &) = default;
+            BorderLine & operator =(BorderLine &&) = default;
+
             const drawinglayer::attribute::LineAttribute& getLineAttribute() const { return maLineAttribute; }
             double getStartLeft() const { return mfStartLeft; }
             double getStartRight() const { return mfStartRight; }
diff --git a/sc/inc/dpdimsave.hxx b/sc/inc/dpdimsave.hxx
index c49f2d33f969..124239cc1bd4 100644
--- a/sc/inc/dpdimsave.hxx
+++ b/sc/inc/dpdimsave.hxx
@@ -50,6 +50,11 @@ public:
     ScDPSaveGroupItem( const OUString& rName );
     ~ScDPSaveGroupItem();
 
+    ScDPSaveGroupItem(ScDPSaveGroupItem const &) = default;
+    ScDPSaveGroupItem(ScDPSaveGroupItem &&) = default;
+    ScDPSaveGroupItem & operator =(ScDPSaveGroupItem const &) = default;
+    ScDPSaveGroupItem & operator =(ScDPSaveGroupItem &&) = default;
+
     void AddToData(ScDPGroupDimension& rDataDim) const;
 
     void    AddElement( const OUString& rName );


More information about the Libreoffice-commits mailing list