1 2 3 4 5
#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