summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-10-02 13:32:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-10-03 15:38:18 +0200
commita4c11b853febd073d310251a4891cdc0ac54e0fa (patch)
tree57b0a64231db767f4fa4e5bdfd5304c0b0d39787 /sw
parent56f9efdf5cc30454dd36959f9d18bf55581c9141 (diff)
cid#1371270 avoid Missing move assignment operator
and... cid#1371301 Missing move assignment operator cid#1371295 Missing move assignment operator cid#1371215 Missing move assignment operator Change-Id: Ib03cddd42128d41e99173e9673bcf6f3cb5ddcbf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122998 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/undo/unredln.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/undo/unredln.cxx b/sw/source/core/undo/unredln.cxx
index ec874cf93a28..eb8caf02878c 100644
--- a/sw/source/core/undo/unredln.cxx
+++ b/sw/source/core/undo/unredln.cxx
@@ -128,7 +128,8 @@ void SwUndoRedline::UndoImpl(::sw::UndoRedoContext & rContext)
rPam = *pRedline;
else
{
- rPam = SwPaM(*pRedline->GetMark(), *rPam.GetPoint());
+ rPam.SetMark();
+ *rPam.GetMark() = *pRedline->GetMark();
}
}
}