Commit b20a8a10 authored by EXT Arnaud Clère's avatar EXT Arnaud Clère

Fixed QValueStatus move that duplicates impl by default instead of

moving it
parent 012c6a96
......@@ -254,7 +254,9 @@ class QValueStatus
{
Q_DISABLE_COPY(QValueStatus)
public:
Q_ENABLE_MOVE_DEFAULT(QValueStatus)
QValueStatus ( ) noexcept : impl(nullptr) {}
QValueStatus (QValueStatus&& o) noexcept : impl(o.impl) { o.impl = nullptr; }
QValueStatus& operator=(QValueStatus&& o) noexcept { auto prev = impl; impl = o.impl; o.impl = prev; return *this; }
explicit QValueStatus(QAbstractValue* i) : impl(i) { Q_ASSERT(impl); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment