sw/source/filter/xml/xmlimp.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8eaeee05f7e0583e25282302811d73682c2f3cad
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Oct 6 15:03:29 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Oct 6 20:38:24 2022 +0200

    use more SwPosition::SetContent
    
    part of the process of hiding the internals of SwPosition
    
    Change-Id: I3f7943f2903827640bfaf21e2cc6c0c85730c7a9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141016
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index 565d3f201e1d..f2bd52292b01 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -676,7 +676,7 @@ void SwXMLImport::endDocument()
                 {
                     const sal_Int32 nCntPos =
                             pPaM->GetBound().GetContentIndex();
-                    pPaM->GetBound().nContent.Assign( pTextNode,
+                    pPaM->GetBound().SetContent(
                             pTextNode->GetText().getLength() + nCntPos );
                 }
                 if( m_oSttNdIdx->GetIndex()+1 ==
@@ -684,7 +684,7 @@ void SwXMLImport::endDocument()
                 {
                     const sal_Int32 nCntPos =
                             pPaM->GetBound( false ).GetContentIndex();
-                    pPaM->GetBound( false ).nContent.Assign( pTextNode,
+                    pPaM->GetBound( false ).SetContent(
                             pTextNode->GetText().getLength() + nCntPos );
                 }
 #endif

Reply via email to