[Libreoffice-commits] core.git: include/tools

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Jul 27 06:21:54 UTC 2018


 include/tools/b3dtrans.hxx |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

New commits:
commit 31dac8fc291d220af240833d0aec8638da0c0c5a
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jul 26 13:51:15 2018 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Jul 27 08:21:23 2018 +0200

    tools: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)
    
    ...by explicitly defaulting the copy/move functions (and, where needed in turn,
    also a default ctor) for classes that have a user-declared dtor that does
    nothing other than an implicitly-defined one would do, but needs to be user-
    declared because it is virtual and potentially serves as a key function to
    emit the vtable, or is non-public, etc.
    
    Change-Id: I17480375f747915f95efdd65ac223077e6451782
    Reviewed-on: https://gerrit.libreoffice.org/58099
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/include/tools/b3dtrans.hxx b/include/tools/b3dtrans.hxx
index 964c9fb1abbc..cf35192e757b 100644
--- a/include/tools/b3dtrans.hxx
+++ b/include/tools/b3dtrans.hxx
@@ -84,6 +84,11 @@ public:
     B3dTransformationSet();
     virtual ~B3dTransformationSet();
 
+    B3dTransformationSet(B3dTransformationSet const &) = default;
+    B3dTransformationSet(B3dTransformationSet &&) = default;
+    B3dTransformationSet & operator =(B3dTransformationSet const &) = default;
+    B3dTransformationSet & operator =(B3dTransformationSet &&) = default;
+
     void Reset();
 
     /** Set the orientation
@@ -163,6 +168,11 @@ public:
     B3dViewport();
     virtual ~B3dViewport() override;
 
+    B3dViewport(B3dViewport const &) = default;
+    B3dViewport(B3dViewport &&) = default;
+    B3dViewport & operator =(B3dViewport const &) = default;
+    B3dViewport & operator =(B3dViewport &&) = default;
+
     void SetVUV(const basegfx::B3DVector& rNewVUV);
     void SetViewportValues(
         const basegfx::B3DPoint& rNewVRP,
@@ -188,6 +198,11 @@ public:
         double fFocLen = 35.0, double fBnkAng = 0.0);
     virtual ~B3dCamera() override;
 
+    B3dCamera(B3dCamera const &) = default;
+    B3dCamera(B3dCamera &&) = default;
+    B3dCamera & operator =(B3dCamera const &) = default;
+    B3dCamera & operator =(B3dCamera &&) = default;
+
 private:
     void CalcNewViewportValues();
     void CalcFocalLength();


More information about the Libreoffice-commits mailing list