From dcd45e25407bc4e50a3faa1ede9c1c3149c21ad7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 17 Aug 2022 07:54:24 +0200 Subject: convert more nNode to SwPosition::GetNode in places where we are using the result with operator< Change-Id: I2aae14e9130efc31f5afd3450defdf6df4099950 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138403 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/core/doc/docbm.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/source/core/doc/docbm.cxx') diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index a4b38b911d6c..f7d87e0daa86 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -188,10 +188,10 @@ namespace bool lcl_GreaterThan( const SwPosition& rPos, const SwNode& rNdIdx, std::optional oContentIdx ) { return oContentIdx.has_value() - ? ( rPos.nNode > rNdIdx + ? ( rPos.GetNode() > rNdIdx || ( rPos.GetNode() == rNdIdx && rPos.nContent >= *oContentIdx ) ) - : rPos.nNode >= rNdIdx; + : rPos.GetNode() >= rNdIdx; } bool lcl_Lower( const SwPosition& rPos, const SwNode& rNdIdx, std::optional oContentIdx ) @@ -1782,7 +1782,7 @@ namespace { bool lcl_Greater( const SwPosition& rPos, const SwNode& rNdIdx, std::optional oContentIdx ) { - return rPos.nNode > rNdIdx || ( oContentIdx && rPos.GetNode() == rNdIdx && rPos.nContent > *oContentIdx ); + return rPos.GetNode() > rNdIdx || ( oContentIdx && rPos.GetNode() == rNdIdx && rPos.nContent > *oContentIdx ); } } -- cgit