diff --git a/src/corelib/time/qtimezone.cpp b/src/corelib/time/qtimezone.cpp index c57e9e77fb1..298e4777192 100644 --- a/src/corelib/time/qtimezone.cpp +++ b/src/corelib/time/qtimezone.cpp @@ -381,7 +381,7 @@ QTimeZone::QTimeZone(QTimeZonePrivate &dd) Copy constructor, copy \a other to this. */ -QTimeZone::QTimeZone(const QTimeZone &other) +QTimeZone::QTimeZone(const QTimeZone &other) noexcept : d(other.d) { } diff --git a/src/corelib/time/qtimezone.h b/src/corelib/time/qtimezone.h index 825caf17402..677fb4afb24 100644 --- a/src/corelib/time/qtimezone.h +++ b/src/corelib/time/qtimezone.h @@ -61,7 +61,7 @@ public: QTimeZone(const QByteArray &zoneId, int offsetSeconds, const QString &name, const QString &abbreviation, QLocale::Territory territory = QLocale::AnyTerritory, const QString &comment = QString()); - QTimeZone(const QTimeZone &other); + QTimeZone(const QTimeZone &other) noexcept; QTimeZone(QTimeZone &&other) noexcept; ~QTimeZone();