diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-10-11 12:22:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-11 19:07:56 +0200 |
commit | 8e39704b597fda9e3ef442252defed16a0a07b03 (patch) | |
tree | b5f38d22b77764e2e74e8e75a53602278548c54c /sw/source | |
parent | 0bd83ba4c40bd7c3ebd3f098421c23bc9ced7b9e (diff) |
use more SwPosition::SetContent
part of the process of hiding the internals of SwPosition
Change-Id: I8a0de56c9e42adda71cffe8b79daca5a8e7a23a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141213
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/doc/tblcpy.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/tblcpy.cxx b/sw/source/core/doc/tblcpy.cxx index bf9200cb0623..808f0ac3d8bb 100644 --- a/sw/source/core/doc/tblcpy.cxx +++ b/sw/source/core/doc/tblcpy.cxx @@ -533,9 +533,9 @@ static void lcl_CpyBox( const SwTable& rCpyTable, const SwTableBox* pCpyBox, // Move Bookmarks { SwPosition aMvPos( aInsIdx ); - SwContentNode* pCNd = SwNodes::GoPrevious( &aMvPos.nNode ); + SwContentNode* pCNd = SwNodes::GoPrevious( &aMvPos ); assert(pCNd); // keep coverity happy - aMvPos.nContent.Assign( pCNd, pCNd->Len() ); + aMvPos.SetContent( pCNd->Len() ); SwDoc::CorrAbs( aInsIdx, aEndNdIdx, aMvPos ); } |