Commit 9a5fc2a4 authored by EXT Arnaud Clère's avatar EXT Arnaud Clère

minor change

parent de11f501
...@@ -149,7 +149,7 @@ private: ...@@ -149,7 +149,7 @@ private:
class QJsonWriter : public QAbstractValueWriter class QJsonWriter : public QAbstractValueWriter
{ {
Q_DISABLE_COPY(QJsonWriter) Q_DISABLE_COPY(QJsonWriter)
Q_ENABLE_MOVE(QJsonWriter, std::swap(io, o.io); std::swap(ba, o.ba); std::swap(levels, o.levels); ) Q_ENABLE_MOVE_DEFAULT(QJsonWriter)
public: public:
QJsonWriter( QIODevice* io) : io(io) { Q_ASSERT(io || ba); } QJsonWriter( QIODevice* io) : io(io) { Q_ASSERT(io || ba); }
QJsonWriter(QByteArray* ba) : ba(ba) { Q_ASSERT(io || ba); } QJsonWriter(QByteArray* ba) : ba(ba) { Q_ASSERT(io || ba); }
......
...@@ -44,10 +44,6 @@ ...@@ -44,10 +44,6 @@
Class ( ) noexcept = default; \ Class ( ) noexcept = default; \
Class (Class&& o) noexcept = default; \ Class (Class&& o) noexcept = default; \
Class& operator=(Class&& o) noexcept = default; Class& operator=(Class&& o) noexcept = default;
#define Q_ENABLE_MOVE(Class, Statements) \
Class ( ) noexcept = default; \
Class (Class&& o) noexcept { Statements } \
Class& operator=(Class&& o) noexcept { if (this!=&o) { Statements } return *this; }
#include <QtCore/qvariant.h> #include <QtCore/qvariant.h>
......
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