diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-04-25 22:24:58 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-04-25 23:01:32 +0200 |
commit | c23dd470d49d722197c148f4ef64a6a3350af88d (patch) | |
tree | 01ce5a4c9d30367fbb349e15e1f17516aa3b367b /sw/inc/swcrsr.hxx | |
parent | bdf3c9bff607e3977c8455927b21ba292530d25a (diff) |
sw: same treatment for SwCursor's fake "copy constructor"
Change-Id: Id627274ca6ad87e7e85b5ce64419ed68a5d4c9c3
Diffstat (limited to 'sw/inc/swcrsr.hxx')
-rw-r--r-- | sw/inc/swcrsr.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/inc/swcrsr.hxx b/sw/inc/swcrsr.hxx index 1e84b16537ef..5e3ea0a228b0 100644 --- a/sw/inc/swcrsr.hxx +++ b/sw/inc/swcrsr.hxx @@ -69,6 +69,8 @@ class SW_DLLPUBLIC SwCursor : public SwPaM using SwPaM::Find; + SwCursor(SwCursor const& rPaM) SAL_DELETED_FUNCTION; + protected: _SwCursor_SavePos* CreateNewSavePos() const; void SaveState(); @@ -86,8 +88,9 @@ public: SwCursor( const SwPosition &rPos, SwPaM* pRing, bool bColumnSel ); virtual ~SwCursor(); - // @@@ semantic: no copy ctor. - SwCursor( SwCursor& rCpy); + /// 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); public: |