sw/source/core/doc/DocumentRedlineManager.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 571b9950236d09df406bf1a05875f6ba95632515 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Mon Aug 29 18:48:59 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Aug 29 20:55:27 2022 +0200 use more SwPosition::Assign part of hiding the internals of SwPosition Change-Id: I2936782ede9871189d48aeca7d25d47d13ae1fdb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139003 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx index d39d698737e2..f90dda9a545f 100644 --- a/sw/source/core/doc/DocumentRedlineManager.cxx +++ b/sw/source/core/doc/DocumentRedlineManager.cxx @@ -1297,7 +1297,7 @@ DocumentRedlineManager::AppendRedline(SwRangeRedline* pNewRedl, bool const bCall if( pStt->GetContentIndex() > 0 ) { OSL_ENSURE( false, "Redline start: non-text-node with content" ); - pStt->nContent = 0; + pStt->SetContent( 0 ); } } else @@ -1305,7 +1305,7 @@ DocumentRedlineManager::AppendRedline(SwRangeRedline* pNewRedl, bool const bCall if( pStt->GetContentIndex() > pTextNode->Len() ) { OSL_ENSURE( false, "Redline start: index after text" ); - pStt->nContent = pTextNode->Len(); + pStt->SetContent( pTextNode->Len() ); } } pTextNode = pEnd->GetNode().GetTextNode(); @@ -1314,7 +1314,7 @@ DocumentRedlineManager::AppendRedline(SwRangeRedline* pNewRedl, bool const bCall if( pEnd->GetContentIndex() > 0 ) { OSL_ENSURE( false, "Redline end: non-text-node with content" ); - pEnd->nContent = 0; + pEnd->SetContent(0); } } else @@ -1322,7 +1322,7 @@ DocumentRedlineManager::AppendRedline(SwRangeRedline* pNewRedl, bool const bCall if( pEnd->GetContentIndex() > pTextNode->Len() ) { OSL_ENSURE( false, "Redline end: index after text" ); - pEnd->nContent = pTextNode->Len(); + pEnd->SetContent( pTextNode->Len() ); } } }