summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docbm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-01 10:23:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-02 15:10:43 +0200
commit961d42e1ca1da7f3199d46445b3766d9c6a6c938 (patch)
tree1797e56bac0bb438f4d3d27a7fb09d82fdafe827 /sw/source/core/doc/docbm.cxx
parent21ed46f683dd9d838371cdba02593f3e64a5124c (diff)
introduce SwPosition::GetNodeIndex
as part of the process of hiding the internals of SwPosition largely done by doing: git grep -lF 'nNode.GetIndex' | xargs perl -pi -e 's/\bnNode\.GetIndex/GetNodeIndex/g' Change-Id: I3616cea4c47595afe74f1aa8e3be553279f25d44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137694 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/docbm.cxx')
-rw-r--r--sw/source/core/doc/docbm.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index e2c15c188d7c..2f56cba64c53 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -459,9 +459,9 @@ namespace
const SwPosition* const pStPos = &pMark->GetMarkStart();
const SwPosition* const pEndPos = &pMark->GetMarkEnd();
SAL_INFO("sw.core",
- sal_Int32(pStPos->nNode.GetIndex()) << "," <<
+ sal_Int32(pStPos->GetNodeIndex()) << "," <<
pStPos->nContent.GetIndex() << " " <<
- sal_Int32(pEndPos->nNode.GetIndex()) << "," <<
+ sal_Int32(pEndPos->GetNodeIndex()) << "," <<
pEndPos->nContent.GetIndex() << " " <<
typeid(*pMark).name() << " " <<
pMark->GetName());
@@ -553,9 +553,9 @@ namespace sw::mark
pPos2 = rPaM.GetMark();
SAL_INFO("sw.core",
rName << " " <<
- sal_Int32(pPos1->nNode.GetIndex() )<< "," <<
+ sal_Int32(pPos1->GetNodeIndex() )<< "," <<
pPos1->nContent.GetIndex() << " " <<
- sal_Int32(pPos2->nNode.GetIndex()) << "," <<
+ sal_Int32(pPos2->GetNodeIndex()) << "," <<
pPos2->nContent.GetIndex());
}
#endif
@@ -1817,7 +1817,7 @@ SaveBookmark::SaveBookmark(
m_pMetadataUndo = pMetadatable->CreateUndo();
}
}
- m_nNode1 = rBkmk.GetMarkPos().nNode.GetIndex();
+ m_nNode1 = rBkmk.GetMarkPos().GetNodeIndex();
m_nContent1 = rBkmk.GetMarkPos().nContent.GetIndex();
m_nNode1 -= rMvPos.GetIndex();
@@ -1826,7 +1826,7 @@ SaveBookmark::SaveBookmark(
if(rBkmk.IsExpanded())
{
- m_nNode2 = rBkmk.GetOtherMarkPos().nNode.GetIndex();
+ m_nNode2 = rBkmk.GetOtherMarkPos().GetNodeIndex();
m_nContent2 = rBkmk.GetOtherMarkPos().nContent.GetIndex();
m_nNode2 -= rMvPos.GetIndex();