sw/source/filter/html/htmltab.cxx | 4 ++-- sw/source/filter/html/htmltabw.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 6ef8762c74ae296b867966b4535243e822aafb05 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Mon Aug 29 15:16:05 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Aug 29 18:00:20 2022 +0200 use more SwPosition::Assign part of hiding the internals of SwPosition Change-Id: I910cdd6a14d0171082935e0de94ec1779a9626c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138997 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx index bf8167b3f5ba..af4c9fd3d71f 100644 --- a/sw/source/filter/html/htmltab.cxx +++ b/sw/source/filter/html/htmltab.cxx @@ -3098,7 +3098,7 @@ void CellSaveStruct::EndNoBreak( const SwPosition& rPos ) { if( m_bNoBreak ) { - m_oNoBreakEndNodeIndex.emplace( rPos.nNode ); + m_oNoBreakEndNodeIndex.emplace( rPos.GetNode() ); m_nNoBreakEndContentPos = rPos.GetContentIndex(); m_bNoBreak = false; } @@ -3453,7 +3453,7 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, bool bReadOptions, pTCntxt->SetFrameFormat( pFrameFormat ); const SwFormatContent& rFlyContent = pFrameFormat->GetContent(); - m_pPam->GetPoint()->nNode = *rFlyContent.GetContentIdx(); + m_pPam->GetPoint()->Assign( *rFlyContent.GetContentIdx() ); m_xDoc->GetNodes().GoNext( m_pPam->GetPoint() ); } diff --git a/sw/source/filter/html/htmltabw.cxx b/sw/source/filter/html/htmltabw.cxx index ba7d84ff55b5..f930703d2145 100644 --- a/sw/source/filter/html/htmltabw.cxx +++ b/sw/source/filter/html/htmltabw.cxx @@ -1136,7 +1136,7 @@ Writer& OutHTML_SwTableNode( Writer& rWrt, SwTableNode & rNode, } // move Pam behind the table - rHTMLWrt.m_pCurrentPam->GetPoint()->nNode = *rNode.EndOfSectionNode(); + rHTMLWrt.m_pCurrentPam->GetPoint()->Assign( *rNode.EndOfSectionNode() ); if( bPreserveForm ) {