sw/source/filter/xml/XMLRedlineImportHelper.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 5cb761865edefadbf10e92783d3f402b12159beb
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sat Aug 20 09:22:32 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sat Aug 20 12:25:58 2022 +0200

    SwNodeIndex->SwNode in XTextRangeOrNodeIndexPosition
    
    Change-Id: I4ad5c7c1545031425b85040c7e176e9c18e412f5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138571
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.cxx 
b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
index c5c8b5b41927..b9174eb27ebf 100644
--- a/sw/source/filter/xml/XMLRedlineImportHelper.cxx
+++ b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
@@ -98,7 +98,7 @@ public:
     XTextRangeOrNodeIndexPosition();
 
     void Set( Reference<XTextRange> const & rRange );
-    void Set( SwNodeIndex const & rIndex );
+    void Set( SwNode const & rIndex );
     void SetAsNodeIndex( Reference<XTextRange> const & rRange );
 
     void CopyPositionInto(SwPosition& rPos, SwDoc & rDoc);
@@ -119,7 +119,7 @@ void XTextRangeOrNodeIndexPosition::Set( 
Reference<XTextRange> const & rRange )
     m_oIndex.reset();
 }
 
-void XTextRangeOrNodeIndexPosition::Set( SwNodeIndex const & rIndex )
+void XTextRangeOrNodeIndexPosition::Set( SwNode const & rIndex )
 {
     m_oIndex = rIndex;
     (*m_oIndex)-- ;   // previous node!!!
@@ -144,7 +144,7 @@ void XTextRangeOrNodeIndexPosition::SetAsNodeIndex(
     OSL_ENSURE(bSuccess, "illegal range");
 
     // PaM -> Index
-    Set(aPaM.GetPoint()->nNode);
+    Set(aPaM.GetPoint()->GetNode());
 }
 
 void

Reply via email to