diff options
Diffstat (limited to 'src/corelib/tools/qbytearray.h')
-rw-r--r-- | src/corelib/tools/qbytearray.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qbytearray.h b/src/corelib/tools/qbytearray.h index 79a7377c40..1e2a93d9f0 100644 --- a/src/corelib/tools/qbytearray.h +++ b/src/corelib/tools/qbytearray.h @@ -201,6 +201,7 @@ public: QByteArray &operator=(const QByteArray &); QByteArray &operator=(const char *str); #ifdef Q_COMPILER_RVALUE_REFS + inline QByteArray(QByteArray && other) : d(other.d) { other.d = Data::sharedNull(); } inline QByteArray &operator=(QByteArray &&other) { qSwap(d, other.d); return *this; } #endif |