diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-28 10:02:48 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-28 22:15:05 +0100 |
commit | be10808279c18e7ca8728393921431b74e88433e (patch) | |
tree | da4e219b01397dc27c048997b95cb03eb5ae427a /src/gui/accessible/qaccessible.cpp | |
parent | a45a3b1ece490bcae5cccd858dbe11408a19bee0 (diff) |
Make QAccessible::State's equality operator a hidden friend
Reduce ADL nose.
We already have an inline default constructor calling memset, so can have
the comparison operator calling memcmp also inlined.
Task-number: QTBUG-87973
Change-Id: If8e0ae98b0c44fc3fddac7ef57c5ff021c80dad6
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/gui/accessible/qaccessible.cpp')
-rw-r--r-- | src/gui/accessible/qaccessible.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index e615dd8cb0..f2bc48fd0c 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -1820,12 +1820,6 @@ const char *qAccessibleEventString(QAccessible::Event event) return QAccessible::staticMetaObject.enumerator(eventEnum).valueToKey(event); } -/*! \internal */ -bool operator==(const QAccessible::State &first, const QAccessible::State &second) -{ - return memcmp(&first, &second, sizeof(QAccessible::State)) == 0; -} - #ifndef QT_NO_DEBUG_STREAM /*! \internal */ Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAccessibleInterface *iface) |