summaryrefslogtreecommitdiff
path: root/include/cppcanvas
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-07-26 12:07:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-07-26 20:41:38 +0200
commit5065bcf513147c1b92edc9d393768b01bc693c3a (patch)
tree8ac1a580eeedc5a64bf2ee63e17ea6c0f01a0593 /include/cppcanvas
parent58f23b8f1fb0e696e40a6ecb356012dc59198abb (diff)
cppcanvas: 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: Ifa6e6f71f73b9d0a577de1a90cbf3a8c969ac062 Reviewed-on: https://gerrit.libreoffice.org/58073 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/cppcanvas')
-rw-r--r--include/cppcanvas/canvas.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cppcanvas/canvas.hxx b/include/cppcanvas/canvas.hxx
index 425d38e44213..532da2f0b342 100644
--- a/include/cppcanvas/canvas.hxx
+++ b/include/cppcanvas/canvas.hxx
@@ -69,6 +69,12 @@ namespace cppcanvas
ANTIALIASING_EXTRA_SIZE=2
};
+ Canvas() = default;
+ Canvas(Canvas const &) = default;
+ Canvas(Canvas &&) = default;
+ Canvas & operator =(Canvas const &) = default;
+ Canvas & operator =(Canvas &&) = default;
+
virtual ~Canvas() {}
virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0;