summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par5.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-03 09:36:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-04 10:40:35 +0200
commit9b58abd841d5fbca5ed9f4423d3f137b412ff761 (patch)
treebfb60c975e0877e9f04a0be8296bfb7390068010 /sw/source/filter/ww8/ww8par5.cxx
parent6816a4d4aff1bcac91d2d5e33160b76a89a47f40 (diff)
add more SwPosition::Assign
These are just the "obviously correct" places where we can use SwPosition::Assign, i.e. the places where we are already correctly setting both nNode and nContent in SwPosition. Change-Id: I27078c91e491c9162770ce729364197056d62cb6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137775 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/ww8par5.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par5.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx
index 2a6aa140ca4b..d59f41d68174 100644
--- a/sw/source/filter/ww8/ww8par5.cxx
+++ b/sw/source/filter/ww8/ww8par5.cxx
@@ -2580,8 +2580,7 @@ eF_ResT SwWW8ImplReader::Read_F_IncludeText( WW8FieldDesc* /*pF*/, OUString& rSt
if (!pSectionNode)
return eF_ResT::TEXT;
- m_pPaM->GetPoint()->nNode = pSectionNode->GetIndex()+1;
- m_pPaM->GetPoint()->nContent.Assign(m_pPaM->GetContentNode(), 0 );
+ m_pPaM->GetPoint()->Assign( pSectionNode->GetIndex()+1 );
//we have inserted a section before this point, so adjust pos
//for future page/section segment insertion