diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-15 20:00:16 +0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-16 08:37:33 +0100 |
commit | 9bb7d239258133020dea5fb8cd8c3b18f706d4e2 (patch) | |
tree | 5ea1c219803bc20f80e29e56a41ea92fd5f4bfc0 /sw/source/core/crsr/trvlfnfl.cxx | |
parent | 63562694beb42b86d0f00dd3c18ac47bb094c9fe (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/crsr/trvlfnfl.cxx')
-rw-r--r-- | sw/source/core/crsr/trvlfnfl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/crsr/trvlfnfl.cxx b/sw/source/core/crsr/trvlfnfl.cxx index 369e6041340f..8cdf807acc55 100644 --- a/sw/source/core/crsr/trvlfnfl.cxx +++ b/sw/source/core/crsr/trvlfnfl.cxx @@ -74,7 +74,7 @@ bool SwCursor::GotoFootnoteText() SwCursorSaveState aSaveState( *this ); GetPoint()->Assign( *static_cast<SwTextFootnote*>(pFootnote)->GetStartNode() ); - SwContentNode* pCNd = GetDoc().GetNodes().GoNextSection( + SwContentNode* pCNd = SwNodes::GoNextSection( GetPoint(), true, !IsReadOnlyAvailable() ); if( pCNd ) |