tdf#157665 Implement three-way operator in contentindex.hxx

Change-Id: Id7a4ca3ff7d5d3bcd1e54758a80f7eb5385e3f50
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210321
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
This commit is contained in:
ApurvR20
2026-09-02 09:26:47 +02:00
committed by Hossein
parent 8bd2359805
commit 4a5e024882
+3 -6
View File
@@ -24,6 +24,7 @@
#include <o3tl/typed_flags_set.hxx>
#include <iostream>
#include <compare>
class SwContentNode;
@@ -81,12 +82,8 @@ public:
bool operator> ( const SwContentIndex& ) const;
bool operator>=( const SwContentIndex& ) const;
bool operator< ( sal_Int32 const nVal ) const { return m_nIndex < nVal; }
bool operator<=( sal_Int32 const nVal ) const { return m_nIndex <= nVal; }
bool operator> ( sal_Int32 const nVal ) const { return m_nIndex > nVal; }
bool operator>=( sal_Int32 const nVal ) const { return m_nIndex >= nVal; }
bool operator==( sal_Int32 const nVal ) const { return m_nIndex == nVal; }
bool operator!=( sal_Int32 const nVal ) const { return m_nIndex != nVal; }
bool operator==( sal_Int32 nVal ) const { return m_nIndex == nVal; }
auto operator<=>(sal_Int32 nVal) const { return m_nIndex <=> nVal; }
bool operator==( const SwContentIndex& rSwContentIndex ) const
{