diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-01 10:23:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-02 15:10:43 +0200 |
commit | 961d42e1ca1da7f3199d46445b3766d9c6a6c938 (patch) | |
tree | 1797e56bac0bb438f4d3d27a7fb09d82fdafe827 /sw/source/core/doc/docfld.cxx | |
parent | 21ed46f683dd9d838371cdba02593f3e64a5124c (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/docfld.cxx')
-rw-r--r-- | sw/source/core/doc/docfld.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx index 10d8361aeaf7..ddab1366b4a3 100644 --- a/sw/source/core/doc/docfld.cxx +++ b/sw/source/core/doc/docfld.cxx @@ -103,7 +103,7 @@ SetGetExpField::SetGetExpField( const SwSectionNode& rSectNd, if( pPos ) { - m_nNode = pPos->nNode.GetIndex(); + m_nNode = pPos->GetNodeIndex(); m_nContent = pPos->nContent.GetIndex(); } else @@ -123,12 +123,12 @@ SetGetExpField::SetGetExpField(::sw::mark::IBookmark const& rBookmark, if (pPos) { - m_nNode = pPos->nNode.GetIndex(); + m_nNode = pPos->GetNodeIndex(); m_nContent = pPos->nContent.GetIndex(); } else { - m_nNode = rBookmark.GetMarkStart().nNode.GetIndex(); + m_nNode = rBookmark.GetMarkStart().GetNodeIndex(); m_nContent = rBookmark.GetMarkStart().nContent.GetIndex();; } } @@ -162,7 +162,7 @@ SetGetExpField::SetGetExpField( const SwPosition& rPos ) { m_eSetGetExpFieldType = CRSRPOS; m_CNTNT.pPos = &rPos; - m_nNode = rPos.nNode.GetIndex(); + m_nNode = rPos.GetNodeIndex(); m_nContent = rPos.nContent.GetIndex(); } @@ -173,7 +173,7 @@ SetGetExpField::SetGetExpField( const SwFlyFrameFormat& rFlyFormat, m_CNTNT.pFlyFormat = &rFlyFormat; if( pPos ) { - m_nNode = pPos->nNode.GetIndex(); + m_nNode = pPos->GetNodeIndex(); m_nContent = pPos->nContent.GetIndex(); } else @@ -213,7 +213,7 @@ void SetGetExpField::SetBodyPos( const SwContentFrame& rFrame ) SwPosition aPos( aIdx ); bool const bResult = ::GetBodyTextNode( rDoc, aPos, rFrame ); OSL_ENSURE(bResult, "Where is the field?"); - m_nNode = aPos.nNode.GetIndex(); + m_nNode = aPos.GetNodeIndex(); m_nContent = aPos.nContent.GetIndex(); } } |