Mark QTimeZone's copy-constructor noexcept

This appears to have been overlooked. It's just the copy-construction
of a QSharedDataPointer, which is declared noexcept, so transparently
safe.

Change-Id: I85e1f750be26dfa94d52dfc0b14efe9c1857d645
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Edward Welbourne 2022-09-21 16:38:54 +02:00
parent 14278bb250
commit 256fbdeedd
2 changed files with 2 additions and 2 deletions

View File

@ -381,7 +381,7 @@ QTimeZone::QTimeZone(QTimeZonePrivate &dd)
Copy constructor, copy \a other to this. Copy constructor, copy \a other to this.
*/ */
QTimeZone::QTimeZone(const QTimeZone &other) QTimeZone::QTimeZone(const QTimeZone &other) noexcept
: d(other.d) : d(other.d)
{ {
} }

View File

@ -61,7 +61,7 @@ public:
QTimeZone(const QByteArray &zoneId, int offsetSeconds, const QString &name, QTimeZone(const QByteArray &zoneId, int offsetSeconds, const QString &name,
const QString &abbreviation, QLocale::Territory territory = QLocale::AnyTerritory, const QString &abbreviation, QLocale::Territory territory = QLocale::AnyTerritory,
const QString &comment = QString()); const QString &comment = QString());
QTimeZone(const QTimeZone &other); QTimeZone(const QTimeZone &other) noexcept;
QTimeZone(QTimeZone &&other) noexcept; QTimeZone(QTimeZone &&other) noexcept;
~QTimeZone(); ~QTimeZone();