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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user