diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp index 7b23800965c..8ba9b0b313f 100644 --- a/src/corelib/text/qlocale.cpp +++ b/src/corelib/text/qlocale.cpp @@ -1167,7 +1167,7 @@ QLocale &QLocale::operator=(const QLocale &other) noexcept = default; Equality comparison. */ -bool QLocale::equals(const QLocale &other) const +bool QLocale::equals(const QLocale &other) const noexcept { return d->m_data == other.d->m_data && d->m_numberOptions == other.d->m_numberOptions; } diff --git a/src/corelib/text/qlocale.h b/src/corelib/text/qlocale.h index 55b9ffbeda3..48b2aa41b61 100644 --- a/src/corelib/text/qlocale.h +++ b/src/corelib/text/qlocale.h @@ -1167,7 +1167,7 @@ public: private: QLocale(QLocalePrivate &dd); - bool equals(const QLocale &other) const; + bool equals(const QLocale &other) const noexcept; friend class QLocalePrivate; friend class QSystemLocale; friend class QCalendarBackend;