[Libreoffice-commits] core.git: sw/inc

Stephan Bergmann sbergman at redhat.com
Wed Jul 4 12:16:32 UTC 2018


 sw/inc/swcrsr.hxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 0e133efbf750f9647ded941faf617da271525a3c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jul 4 12:07:57 2018 +0200

    -Werror=deprecated-copy (GCC trunk towards GCC 9)
    
    It is apparently by "design" that SwCursor has a deleted copy ctor and non-
    deleted copy assignment op, see bdf3c9bff607e3977c8455927b21ba292530d25a 'sw:
    replace SwPaM's so-called "copy constructor'" and
    c23dd470d49d722197c148f4ef64a6a3350af88d "sw: same treatment for SwCursor's fake
    'copy constructor'"
    
    Change-Id: I7c44dcf022fa3edbd371d5a19c547f6ebdc13204
    Reviewed-on: https://gerrit.libreoffice.org/56934
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sw/inc/swcrsr.hxx b/sw/inc/swcrsr.hxx
index b195a12f579f..c1e4c4c145bc 100644
--- a/sw/inc/swcrsr.hxx
+++ b/sw/inc/swcrsr.hxx
@@ -95,6 +95,8 @@ public:
     SwCursor( const SwPosition &rPos, SwPaM* pRing );
     virtual ~SwCursor() override;
 
+    SwCursor & operator =(SwCursor const &) = default;
+
     /// this takes a second parameter, which indicates the Ring that
     /// the new cursor should be part of (may be null)
     SwCursor(SwCursor const& rCursor, SwPaM* pRing);


More information about the Libreoffice-commits mailing list