summaryrefslogtreecommitdiff
path: root/sw/source/core/fields/expfld.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-02-15 20:00:16 +0600
committerMike Kaganski <mike.kaganski@collabora.com>2024-02-16 08:37:33 +0100
commit9bb7d239258133020dea5fb8cd8c3b18f706d4e2 (patch)
tree5ea1c219803bc20f80e29e56a41ea92fd5f4bfc0 /sw/source/core/fields/expfld.cxx
parent63562694beb42b86d0f00dd3c18ac47bb094c9fe (diff)
Deduplicate and unify SwNodes::Go(Next|Prev)(Section)
The "Next" methods are made static, just as "Prev" ones. Overloads taking SwNodeIndex and SwPosition are implemented using a common implementation function, to avoid code duplication. Change-Id: I4035188b5c29d19824cd6d031e05d668d5cf1e86 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163443 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/core/fields/expfld.cxx')
-rw-r--r--sw/source/core/fields/expfld.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/fields/expfld.cxx b/sw/source/core/fields/expfld.cxx
index 6ed4cdb7c125..c764f898d93f 100644
--- a/sw/source/core/fields/expfld.cxx
+++ b/sw/source/core/fields/expfld.cxx
@@ -142,7 +142,7 @@ static SwTextNode* GetFirstTextNode( const SwDoc& rDoc, SwPosition& rPos,
const SwNodes& rNodes = rDoc.GetNodes();
rPos.Assign( *rNodes.GetEndOfContent().StartOfSectionNode() );
SwContentNode* pCNd;
- while( nullptr != (pCNd = rNodes.GoNext( &rPos ) ) &&
+ while( nullptr != (pCNd = SwNodes::GoNext( &rPos ) ) &&
nullptr == ( pTextNode = pCNd->GetTextNode() ) )
;
OSL_ENSURE( pTextNode, "Where is the 1. TextNode?" );