diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-01-19 21:10:49 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-01-21 11:22:50 +0100 |
commit | b9365aed6a6699e4ae1c1638217565a18ebf6de6 (patch) | |
tree | 93713cfec0ab4e0bf7807661ba10aa30c50b59f4 /src/corelib/kernel | |
parent | 9fab24f8779fbfc1ab03483d41f41070b3fe9c32 (diff) |
QtCore: add some more Q_DECL_NOTHROW
QtCore now builds with no -Wnoexcept warnings
(that doesn't mean there aren't tons of functions
that should be marked noexcept, just that all
conditionally noexcept functions aren't noexcept(false)
just because of a forgotten noexcept elsewhere).
Change-Id: I10dacb6b9c9d41d3595fe2f306356d62d3d91c76
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r-- | src/corelib/kernel/qvariant.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h index c33ac834c0..3701144438 100644 --- a/src/corelib/kernel/qvariant.h +++ b/src/corelib/kernel/qvariant.h @@ -189,7 +189,7 @@ class Q_CORE_EXPORT QVariant LastType = 0xffffffff // need this so that gcc >= 3.4 allocates 32 bits for Type }; - inline QVariant(); + QVariant() Q_DECL_NOTHROW : d() {} ~QVariant(); QVariant(Type type); QVariant(int typeId, const void *copy); @@ -520,8 +520,6 @@ inline void qVariantSetValue<QVariant>(QVariant &v, const QVariant &t) v = t; } - -inline QVariant::QVariant() {} inline bool QVariant::isValid() const { return d.type != Invalid; } template<typename T> |