diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-06-12 21:01:38 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-06-13 14:07:06 +0200 |
commit | 620c2fe55b327e555477ed29bd670ddc6b9023d1 (patch) | |
tree | da4adfaa14e93875fe1e3dda3e07ff1ef5ccec68 /lib/jobs/requestdata.cpp | |
parent | 84d6295f859ee600d7aa3860767030bdc78914ba (diff) | |
download | libquotient-620c2fe55b327e555477ed29bd670ddc6b9023d1.tar.gz libquotient-620c2fe55b327e555477ed29bd670ddc6b9023d1.zip |
Make RequestData compile again
This fixes reliance on QIODevice being magically available for
std::unique_ptr<> by indirect inclusion. Since Qt 6 this inclusion no
more happens, time to #include <QIODevice> explicitly.
Diffstat (limited to 'lib/jobs/requestdata.cpp')
-rw-r--r-- | lib/jobs/requestdata.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/jobs/requestdata.cpp b/lib/jobs/requestdata.cpp index 047e2920..2c001ccc 100644 --- a/lib/jobs/requestdata.cpp +++ b/lib/jobs/requestdata.cpp @@ -3,6 +3,7 @@ #include "requestdata.h" +#include <QtCore/QIODevice> #include <QtCore/QBuffer> #include <QtCore/QByteArray> #include <QtCore/QJsonArray> @@ -31,4 +32,8 @@ RequestData::RequestData(const QJsonObject& jo) : _source(fromJson(jo)) {} RequestData::RequestData(const QJsonArray& ja) : _source(fromJson(ja)) {} +RequestData::RequestData(QIODevice* source) + : _source(std::unique_ptr<QIODevice>(source)) +{} + RequestData::~RequestData() = default; |