Kaydet (Commit) 5065bcf5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 58f23b8f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment