summaryrefslogtreecommitdiffstats
path: root/sw/source/core/unocore/unocrsrhelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-12 09:45:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-14 09:03:59 +0200
commit25a299a8859e82fe0fdafc2bb70680aed54d3887 (patch)
tree5f0460b2ceea5f86891f630afbfee6d876c5b84d /sw/source/core/unocore/unocrsrhelper.cxx
parentimprove lcl_HighestLevel (diff)
downloadcore-25a299a8859e82fe0fdafc2bb70680aed54d3887.tar.gz
core-25a299a8859e82fe0fdafc2bb70680aed54d3887.zip
use more SwPosition::GetNode instead of nNode
as part of the process of hiding the internals of SwPosition. This just changes the places we are passing nNode to the constructor of SwNodeIndex Change-Id: I3dffba5df6c044a69da27b6a1254592695b976af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138200 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/unocore/unocrsrhelper.cxx')
-rw-r--r--sw/source/core/unocore/unocrsrhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx
index 612d17826753..3b5ff90c252b 100644
--- a/sw/source/core/unocore/unocrsrhelper.cxx
+++ b/sw/source/core/unocore/unocrsrhelper.cxx
@@ -1145,7 +1145,7 @@ void InsertFile(SwUnoCursor* pUnoCursor, const OUString& rURL,
if(pUnoCursor->HasMark())
rDoc.getIDocumentContentOperations().DeleteAndJoin(*pUnoCursor);
- SwNodeIndex aSave( pUnoCursor->GetPoint()->nNode, -1 );
+ SwNodeIndex aSave( pUnoCursor->GetPoint()->GetNode(), -1 );
sal_Int32 nContent = pUnoCursor->GetPoint()->GetContentIndex();
ErrCode nErrno = pRdr->Read( *pRead ); // and paste the document