QTableWidgetSelectionRange: make relational operators noexcept
Also remove the superfluous inline keyword. Pick-to: 6.3 Change-Id: I2cd2fc46687626a6f9eab60553bc3022c7eed6de Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
60f21e96ae
commit
569f8efd82
@ -57,12 +57,12 @@ public:
|
||||
: m_top(top), m_left(left), m_bottom(bottom), m_right(right)
|
||||
{}
|
||||
|
||||
friend inline bool operator==(const QTableWidgetSelectionRange &lhs,
|
||||
const QTableWidgetSelectionRange &rhs)
|
||||
friend bool operator==(const QTableWidgetSelectionRange &lhs,
|
||||
const QTableWidgetSelectionRange &rhs) noexcept
|
||||
{ return lhs.m_top == rhs.m_top && lhs.m_left == rhs.m_left
|
||||
&& lhs.m_bottom == rhs.m_bottom && lhs.m_right == rhs.m_right; };
|
||||
friend inline bool operator!=(const QTableWidgetSelectionRange &lhs,
|
||||
const QTableWidgetSelectionRange &rhs)
|
||||
friend bool operator!=(const QTableWidgetSelectionRange &lhs,
|
||||
const QTableWidgetSelectionRange &rhs) noexcept
|
||||
{ return !(lhs == rhs); }
|
||||
|
||||
inline int topRow() const { return m_top; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user