Commit f2a12e70 authored by EXT Arnaud Clère's avatar EXT Arnaud Clère
Browse files

Simplified QMovedResult for direct use, requiring just an extra .value() call...

Simplified QMovedResult for direct use, requiring just an extra .value() call from the user but no "facade" class to hide protected impl
parent b8c51514
......@@ -57,7 +57,7 @@ class QJsonBuilder : public QScopedResult<QJsonBuilder, QJsonBuilderImpl, BindMo
{
Q_DISABLE_COPY(QJsonBuilder)
public:
Q_ENABLE_DEFAULT_MOVE(QJsonBuilder)
Q_ENABLE_MOVE_DEFAULT(QJsonBuilder)
QJsonBuilder(QJsonValue* v);
private:
friend class QJsonBuilderImpl; // uses method below
......@@ -111,7 +111,7 @@ class QJsonWriter : public QScopedResult<QJsonWriter, QJsonWriterImpl, BindMode:
{
Q_DISABLE_COPY(QJsonWriter)
public:
Q_ENABLE_DEFAULT_MOVE(QJsonWriter)
Q_ENABLE_MOVE_DEFAULT(QJsonWriter)
QJsonWriter(QIODevice* io);
private:
friend class QJsonWriterImpl; // uses method below
......@@ -163,7 +163,7 @@ class QJsonReader : public QScopedResult<QJsonReader, QJsonReaderImpl, BindMode:
{
Q_DISABLE_COPY(QJsonReader)
public:
Q_ENABLE_DEFAULT_MOVE(QJsonReader)
Q_ENABLE_MOVE_DEFAULT(QJsonReader)
QJsonReader(QIODevice* io);
private:
friend class QJsonReaderImpl; // uses method below
......
Supports Markdown
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