diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-03 12:12:04 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-03 12:12:04 +0900 |
commit | c62180d910cc23b5360bbb0807d792f876f195a6 (patch) | |
tree | 656b744af4155b7b7c5f53e643367873d294bdde /jobs | |
parent | b34368907cba52954849bfb0266e119e5563eeb7 (diff) | |
parent | ffb8233d1b6ac54e37391e1949697ba8f6828f47 (diff) | |
download | libquotient-c62180d910cc23b5360bbb0807d792f876f195a6.tar.gz libquotient-c62180d910cc23b5360bbb0807d792f876f195a6.zip |
Merge branch 'master' into kitsune-gtad
Diffstat (limited to 'jobs')
-rw-r--r-- | jobs/requestdata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/requestdata.cpp b/jobs/requestdata.cpp index f5516c5f..5cb62221 100644 --- a/jobs/requestdata.cpp +++ b/jobs/requestdata.cpp @@ -8,7 +8,7 @@ using namespace QMatrixClient; -std::unique_ptr<QIODevice> fromData(const QByteArray& data) +auto fromData(const QByteArray& data) { auto source = std::make_unique<QBuffer>(); source->open(QIODevice::WriteOnly); @@ -18,7 +18,7 @@ std::unique_ptr<QIODevice> fromData(const QByteArray& data) } template <typename JsonDataT> -inline std::unique_ptr<QIODevice> fromJson(const JsonDataT& jdata) +inline auto fromJson(const JsonDataT& jdata) { return fromData(QJsonDocument(jdata).toJson(QJsonDocument::Compact)); } |