diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 13:51:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-07-27 08:21:23 +0200 |
commit | 31dac8fc291d220af240833d0aec8638da0c0c5a (patch) | |
tree | f8882d7415f3f20e8cf0098d3da5c959a0fd5b48 | |
parent | aa84f1458f422c1acf38b53a3e3138cd0e84e313 (diff) |
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@redhat.com>
-rw-r--r-- | include/tools/b3dtrans.hxx | 15 |
1 files changed, 15 insertions, 0 deletions
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(); |