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

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


 include/svtools/imapobj.hxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 10eb292bcae870b022ae8995ecc724fe2d3bfb7c
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jul 26 13:53:39 2018 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Jul 27 08:22:42 2018 +0200

    svtools: 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: I206a63f4ed3468bb60505b630a42418ee14d8a0c
    Reviewed-on: https://gerrit.libreoffice.org/58101
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/include/svtools/imapobj.hxx b/include/svtools/imapobj.hxx
index 9e396842ccf8..be3261abe5e0 100644
--- a/include/svtools/imapobj.hxx
+++ b/include/svtools/imapobj.hxx
@@ -86,6 +86,11 @@ public:
                                     bool bActive );
     virtual             ~IMapObject() {};
 
+    IMapObject(IMapObject const &) = default;
+    IMapObject(IMapObject &&) = default;
+    IMapObject & operator =(IMapObject const &) = default;
+    IMapObject & operator =(IMapObject &&) = default;
+
     virtual sal_uInt16  GetType() const = 0;
     virtual bool        IsHit( const Point& rPoint ) const = 0;
 


More information about the Libreoffice-commits mailing list