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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jul 26 18:42:11 UTC 2018


 include/cppcanvas/canvas.hxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 5065bcf513147c1b92edc9d393768b01bc693c3a
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jul 26 12:07:48 2018 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jul 26 20:41:38 2018 +0200

    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 at redhat.com>

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;


More information about the Libreoffice-commits mailing list