diff options
Diffstat (limited to 'Userland/Libraries/LibVT/Position.h')
-rw-r--r-- | Userland/Libraries/LibVT/Position.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibVT/Position.h b/Userland/Libraries/LibVT/Position.h index c880a4c005..b24e6e6a8f 100644 --- a/Userland/Libraries/LibVT/Position.h +++ b/Userland/Libraries/LibVT/Position.h @@ -23,27 +23,27 @@ public: int row() const { return m_row; } int column() const { return m_column; } - bool operator<(const Position& other) const + bool operator<(Position const& other) const { return m_row < other.m_row || (m_row == other.m_row && m_column < other.m_column); } - bool operator<=(const Position& other) const + bool operator<=(Position const& other) const { return *this < other || *this == other; } - bool operator>=(const Position& other) const + bool operator>=(Position const& other) const { return !(*this < other); } - bool operator==(const Position& other) const + bool operator==(Position const& other) const { return m_row == other.m_row && m_column == other.m_column; } - bool operator!=(const Position& other) const + bool operator!=(Position const& other) const { return !(*this == other); } |