diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h index f3dee0433b2..64daf5e0127 100644 --- a/src/corelib/kernel/qmetatype.h +++ b/src/corelib/kernel/qmetatype.h @@ -516,7 +516,7 @@ public: static QMetaType fromName(QByteArrayView name); private: friend bool comparesEqual(const QMetaType &lhs, - const QMetaType &rhs) noexcept + const QMetaType &rhs) { if (lhs.d_ptr == rhs.d_ptr) return true; @@ -527,7 +527,7 @@ private: const int bId = rhs.id(); return aId == bId; } - Q_DECLARE_EQUALITY_COMPARABLE(QMetaType) + Q_DECLARE_EQUALITY_COMPARABLE_NON_NOEXCEPT(QMetaType) #ifndef QT_NO_DEBUG_STREAM private: friend Q_CORE_EXPORT QDebug operator<<(QDebug d, QMetaType m);