summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docbm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-08-17 18:53:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-18 08:47:39 +0200
commit1085810635c1a666e31ca4614f5f32b30af5fb1d (patch)
treeb22d570374b2dd859460fcfa8db4f160267a97f0 /sw/source/core/doc/docbm.cxx
parentca05ad4c8dac439c676f84e13bb8949e81bca72e (diff)
convert more nNode to SwPosition::GetNode
in places where we are using the result with operator< Change-Id: I3440d1204e69e30f21eaf833c2d0c42cde59e55c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138454 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.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index f7d87e0daa86..2da73745fb2f 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -196,7 +196,7 @@ namespace
bool lcl_Lower( const SwPosition& rPos, const SwNode& rNdIdx, std::optional<sal_Int32> oContentIdx )
{
- return rPos.nNode < rNdIdx
+ return rPos.GetNode() < rNdIdx
|| ( oContentIdx.has_value()
&& rPos.GetNode() == rNdIdx
&& rPos.nContent < *oContentIdx );
@@ -209,7 +209,7 @@ namespace
auto const& rSecondStart(pSecond->GetMarkStart());
if (rFirstStart.nNode != rSecondStart.nNode)
{
- return rFirstStart.nNode < rSecondStart.nNode;
+ return rFirstStart.GetNode() < rSecondStart.GetNode();
}
const sal_Int32 nFirstContent = rFirstStart.GetContentIndex();
const sal_Int32 nSecondContent = rSecondStart.GetContentIndex();