summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qregexp.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-07-19 23:00:43 +0200
committerMarc Mutz <marc.mutz@kdab.com>2015-09-13 12:21:53 +0000
commitf679a44f51e0571f9e7eaa0e600b20da9e48721c (patch)
treec2b3ee14453ce00bc7978961c537bb73d5821972 /src/corelib/tools/qregexp.h
parentd3a21a18de73b70d0f20a36ae36439eac1f17ce4 (diff)
QRegExp: mark existing move assignment operator and swap() nothrow
Change-Id: Iad9adc1cb9ea72689c81624caae2fe5a9e02e591 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qregexp.h')
-rw-r--r--src/corelib/tools/qregexp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/tools/qregexp.h b/src/corelib/tools/qregexp.h
index f384e6c51f..9c68c194e0 100644
--- a/src/corelib/tools/qregexp.h
+++ b/src/corelib/tools/qregexp.h
@@ -68,10 +68,9 @@ public:
~QRegExp();
QRegExp &operator=(const QRegExp &rx);
#ifdef Q_COMPILER_RVALUE_REFS
- inline QRegExp &operator=(QRegExp &&other)
- { qSwap(priv,other.priv); return *this; }
+ QRegExp &operator=(QRegExp &&other) Q_DECL_NOTHROW { swap(other); return *this; }
#endif
- inline void swap(QRegExp &other) { qSwap(priv, other.priv); }
+ void swap(QRegExp &other) Q_DECL_NOTHROW { qSwap(priv, other.priv); }
bool operator==(const QRegExp &rx) const;
inline bool operator!=(const QRegExp &rx) const { return !operator==(rx); }