sw/source/core/crsr/findattr.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 16429ec437f4bf2acf33b4b2d968b45548f779b4
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sun Sep 25 18:16:21 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sun Sep 25 19:36:22 2022 +0200

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

diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx
index 20d52b2a95c7..79f9e5751906 100644
--- a/sw/source/core/crsr/findattr.cxx
+++ b/sw/source/core/crsr/findattr.cxx
@@ -109,17 +109,16 @@ static void lcl_SetAttrPam( SwPaM& rPam, sal_Int32 
nStart, const sal_Int32* pEnd
         nContentPos = rPam.GetPoint()->GetContentIndex();
     bool bTstEnd = rPam.GetPoint()->GetNode() == rPam.GetMark()->GetNode();
 
-    SwContentNode* pCNd = rPam.GetPointContentNode();
-    rPam.GetPoint()->nContent.Assign( pCNd, nStart );
+    rPam.GetPoint()->SetContent( nStart );
     rPam.SetMark(); // Point == GetMark
 
     // Point points to end of search area or end of attribute
     if( pEnd )
     {
         if( bTstEnd && *pEnd > nContentPos )
-            rPam.GetPoint()->nContent = nContentPos;
+            rPam.GetPoint()->SetContent(nContentPos);
         else
-            rPam.GetPoint()->nContent = *pEnd;
+            rPam.GetPoint()->SetContent(*pEnd);
     }
 }
 

Reply via email to