From 569f8efd827e1653de92947fe3d80b99e68a158e Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 21 Jan 2022 00:08:56 +0100 Subject: QTableWidgetSelectionRange: make relational operators noexcept Also remove the superfluous inline keyword. Pick-to: 6.3 Change-Id: I2cd2fc46687626a6f9eab60553bc3022c7eed6de Reviewed-by: Volker Hilsheimer --- src/widgets/itemviews/qtablewidget.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/widgets/itemviews') diff --git a/src/widgets/itemviews/qtablewidget.h b/src/widgets/itemviews/qtablewidget.h index 3978bc23d6..46711c8fa0 100644 --- a/src/widgets/itemviews/qtablewidget.h +++ b/src/widgets/itemviews/qtablewidget.h @@ -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; } -- cgit v1.2.3