diff options
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)); } |