summaryrefslogtreecommitdiff
path: root/src/corelib/tools/qregexp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qregexp.h')
-rw-r--r--src/corelib/tools/qregexp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qregexp.h b/src/corelib/tools/qregexp.h
index e19c13080d..0b4a702c62 100644
--- a/src/corelib/tools/qregexp.h
+++ b/src/corelib/tools/qregexp.h
@@ -76,6 +76,10 @@ public:
QRegExp(const QRegExp &rx);
~QRegExp();
QRegExp &operator=(const QRegExp &rx);
+#ifdef Q_COMPILER_RVALUE_REFS
+ inline QRegExp &operator=(QRegExp &&other)
+ { qSwap(priv,other.priv); return *this; }
+#endif
bool operator==(const QRegExp &rx) const;
inline bool operator!=(const QRegExp &rx) const { return !operator==(rx); }