aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 12:12:04 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 12:12:04 +0900
commitc62180d910cc23b5360bbb0807d792f876f195a6 (patch)
tree656b744af4155b7b7c5f53e643367873d294bdde /jobs
parentb34368907cba52954849bfb0266e119e5563eeb7 (diff)
parentffb8233d1b6ac54e37391e1949697ba8f6828f47 (diff)
downloadlibquotient-c62180d910cc23b5360bbb0807d792f876f195a6.tar.gz
libquotient-c62180d910cc23b5360bbb0807d792f876f195a6.zip
Merge branch 'master' into kitsune-gtad
Diffstat (limited to 'jobs')
-rw-r--r--jobs/requestdata.cpp4
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));
}