diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-08-17 07:54:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-17 20:52:58 +0200 |
commit | dcd45e25407bc4e50a3faa1ede9c1c3149c21ad7 (patch) | |
tree | bef38f14370fdabc8b50d8ec6249cf5064adaad6 /sw/source/core/doc/docbm.cxx | |
parent | 7e8be84f54fb10d5ba97c64009403c79c3976393 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/docbm.cxx')
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<sal_Int32> 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<sal_Int32> oContentIdx ) @@ -1782,7 +1782,7 @@ namespace { bool lcl_Greater( const SwPosition& rPos, const SwNode& rNdIdx, std::optional<sal_Int32> oContentIdx ) { - return rPos.nNode > rNdIdx || ( oContentIdx && rPos.GetNode() == rNdIdx && rPos.nContent > *oContentIdx ); + return rPos.GetNode() > rNdIdx || ( oContentIdx && rPos.GetNode() == rNdIdx && rPos.nContent > *oContentIdx ); } } |