diff options
Diffstat (limited to 'src/corelib/tools/qstring.h')
-rw-r--r-- | src/corelib/tools/qstring.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qstring.h b/src/corelib/tools/qstring.h index 61b7264296..7b6d7842cc 100644 --- a/src/corelib/tools/qstring.h +++ b/src/corelib/tools/qstring.h @@ -198,6 +198,7 @@ public: QString &operator=(const QString &); inline QString &operator=(const QLatin1String &); #ifdef Q_COMPILER_RVALUE_REFS + inline QString(QString && other) : d(other.d) { other.d = Data::sharedNull(); } inline QString &operator=(QString &&other) { qSwap(d, other.d); return *this; } #endif |