summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-24 09:47:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-24 11:38:27 +0200
commitbe9644c5b6aeecdb363d4fc9ba4a113c6280ae80 (patch)
treea026199aa8cb17c2549d0eaaa1139512a684664c
parent6ba1f58c58857812d85e7c57d2f612ca80216786 (diff)
use SwNode instead of SwNodeIndex in WillHavePageDescHere method
part of the process of hiding the internals of SwPosition Change-Id: Ib671c8a0588e7e53567b2ed02ff6169226d7c2e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138752 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sw/source/filter/ww8/ww8par.hxx2
-rw-r--r--sw/source/filter/ww8/ww8par5.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx
index 5b9d40230699..e40d0e8d6b33 100644
--- a/sw/source/filter/ww8/ww8par.hxx
+++ b/sw/source/filter/ww8/ww8par.hxx
@@ -880,7 +880,7 @@ public:
bool CurrentSectionIsProtected() const;
void PrependedInlineNode(const SwPosition &rPos, const SwNode &rNode);
sal_uInt16 CurrentSectionColCount() const;
- bool WillHavePageDescHere(const SwNodeIndex& rIdx) const;
+ bool WillHavePageDescHere(const SwNode&) const;
void CreateSep(const tools::Long nTextPos);
void InsertSegments();
void JoinNode(const SwPosition &rPos, const SwNode &rNode);
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx
index bd17737753ef..12b940b96a9d 100644
--- a/sw/source/filter/ww8/ww8par5.cxx
+++ b/sw/source/filter/ww8/ww8par5.cxx
@@ -2970,13 +2970,13 @@ sal_uInt16 wwSectionManager::CurrentSectionColCount() const
//Will there be a new pagebreak at this position (don't know what type
//until later)
-bool wwSectionManager::WillHavePageDescHere(const SwNodeIndex& rIdx) const
+bool wwSectionManager::WillHavePageDescHere(const SwNode& rNd) const
{
bool bRet = false;
if (!maSegments.empty())
{
if (!maSegments.back().IsContinuous() &&
- maSegments.back().maStart == rIdx)
+ maSegments.back().maStart == rNd)
{
bRet = true;
}
@@ -3469,7 +3469,7 @@ eF_ResT SwWW8ImplReader::Read_F_Tox( WW8FieldDesc* pF, OUString& rStr )
//Will there be a new pagebreak at this position (don't know what type
//until later)
- if (m_aSectionManager.WillHavePageDescHere(pPos->nNode))
+ if (m_aSectionManager.WillHavePageDescHere(pPos->GetNode()))
aFltTOX.SetHadPageDescItem(true);
// Set start in stack