diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-04 12:07:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-07-04 14:16:09 +0200 |
commit | 0e133efbf750f9647ded941faf617da271525a3c (patch) | |
tree | 0c5cb77a695f6c3178b72e6e283d1ea1232098c9 | |
parent | 5d774434743fbc40a5d19daadc9d5b73d2552c41 (diff) |
-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@redhat.com>
-rw-r--r-- | sw/inc/swcrsr.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
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); |