summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-04 08:39:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-04 14:00:04 +0200
commit9afc3e2715027811fe0f8bfc5be924a7781fc2a1 (patch)
tree4d4a0e9df34a08da2cbdeecc4b6bb36c90476cf2 /sw/source/filter/xml
parentba31e1bfdbcb836ba0fb4ea795997ce788b21e11 (diff)
use more SwPosition::Assign
Updating some more of the places where the usage is "safe" i.e. this patch should introduce no functional change. Change-Id: I02390b3daecf23c1541a69f1957e6cf507cef72d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137777 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml')
-rw-r--r--sw/source/filter/xml/xmlimp.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index 30b8daaf4840..72f1192f36e1 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -658,8 +658,7 @@ void SwXMLImport::endDocument()
// end of the previous node.
if( pPaM->GetPoint()->nNode == aNxtIdx )
{
- pPaM->GetPoint()->nNode = *m_pSttNdIdx;
- pPaM->GetPoint()->nContent.Assign( pTextNode,
+ pPaM->GetPoint()->Assign( *pTextNode,
pTextNode->GetText().getLength());
}