path: root/src/corelib/tools/qtimezone.h
diff options
authorMarc Mutz <>2015-01-08 15:08:22 +0100
committerMarc Mutz <>2015-01-10 08:43:15 +0100
commit390b16aea85e64bc33ce91e37898f59ad8a994c7 (patch)
tree0cefc9dd8f47cfca2af11e0337c26d22fc7af063 /src/corelib/tools/qtimezone.h
parent2c2801860dde4d707af9ce291489bee1750955d1 (diff)
QtCore: mark some operations nothrow
This shotgun-surgery approach is motivated by trying to get a clean(er) build for -Wnoexcept on GCC, so it is expected that for any class touched here, there will be more operations that can be marked nothrow. But they don't show up in conditional noexcept clauses, yet, so they are deferred to some later commit. Change-Id: I0eb10d75a26c361fb22cf785399e83b434bdf233 Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'src/corelib/tools/qtimezone.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qtimezone.h b/src/corelib/tools/qtimezone.h
index ffc2316b5f..ef0bdc57cd 100644
--- a/src/corelib/tools/qtimezone.h
+++ b/src/corelib/tools/qtimezone.h
@@ -79,10 +79,10 @@ public:
QTimeZone &operator=(const QTimeZone &other);
- QTimeZone &operator=(QTimeZone &&other) { swap(other); return *this; }
+ QTimeZone &operator=(QTimeZone &&other) Q_DECL_NOTHROW { swap(other); return *this; }
- void swap(QTimeZone &other)
+ void swap(QTimeZone &other) Q_DECL_NOTHROW
{ d.swap(other.d); }
bool operator==(const QTimeZone &other) const;