summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-01-21 00:08:56 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-01-21 07:03:07 +0100
commit569f8efd827e1653de92947fe3d80b99e68a158e (patch)
treeb94b48e51257bd1670b52b741ae49214a5bb8c89 /src/widgets
parent60f21e96aeeda1e1b96b1abd91630a85ea5c1820 (diff)
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>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/itemviews/qtablewidget.h8
1 files changed, 4 insertions, 4 deletions
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; }