summaryrefslogtreecommitdiff
path: root/sw/source/filter/writer
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-04 11:07:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-04 14:45:55 +0200
commit502357eef1a6d74a0aeb0b3f2ed956cb6f671008 (patch)
tree9e9041fcc65124f22e4b31f7410f5f04b4b53265 /sw/source/filter/writer
parenta999b8dc83a9ee1749502eb909794cddc6f34f84 (diff)
introduce SwPosition::AssignStartIndex and AssignEndIndex
as part of the process of hiding the internals of SwPosition Change-Id: I496a0e24257a1ec6653a3becef4889b6fdf5339b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137788 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/writer')
-rw-r--r--sw/source/filter/writer/writer.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx
index a810ff47e3e0..640cec57bcc9 100644
--- a/sw/source/filter/writer/writer.cxx
+++ b/sw/source/filter/writer/writer.cxx
@@ -206,8 +206,7 @@ Writer::NewUnoCursor(SwDoc & rDoc, SwNodeOffset const nStartIdx, SwNodeOffset co
if (!pCNode)
pCNode = SwNodes::GoPrevious(&aStt);
assert(pCNode && "No more ContentNode at StartPos");
- pCNode->MakeEndIndex( &pNew->GetPoint()->nContent );
- pNew->GetPoint()->nNode = aStt;
+ pNew->GetPoint()->AssignEndIndex( *pCNode );
return pNew;
}