aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/content-repo.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-09-29 22:22:49 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-09-29 22:22:49 +0900
commitb55334ac0fe89f780776bc4eab90ffe1ca3c57bb (patch)
tree1a45c0ccfec8f5f7ba37eb4385cdc7f61afa0c97 /lib/csapi/content-repo.cpp
parentf5c2e47fa1ab84fdaffe03c30ba973d7dea5ac05 (diff)
parent1e6510790dab6b9141ae52993987b406399668cd (diff)
downloadlibquotient-b55334ac0fe89f780776bc4eab90ffe1ca3c57bb.tar.gz
libquotient-b55334ac0fe89f780776bc4eab90ffe1ca3c57bb.zip
Merge branch 'cs-api-0.4.0'
Diffstat (limited to 'lib/csapi/content-repo.cpp')
-rw-r--r--lib/csapi/content-repo.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/csapi/content-repo.cpp b/lib/csapi/content-repo.cpp
index f686683c..9b590e42 100644
--- a/lib/csapi/content-repo.cpp
+++ b/lib/csapi/content-repo.cpp
@@ -109,8 +109,8 @@ QIODevice* GetContentJob::data() const
BaseJob::Status GetContentJob::parseReply(QNetworkReply* reply)
{
- d->contentType = reply->rawHeader("Content-Type");
- d->contentDisposition = reply->rawHeader("Content-Disposition");
+ d->contentType = reply->rawHeader("Content-Type");
+ d->contentDisposition = reply->rawHeader("Content-Disposition");
d->data = reply;
return Success;
}
@@ -168,8 +168,8 @@ QIODevice* GetContentOverrideNameJob::data() const
BaseJob::Status GetContentOverrideNameJob::parseReply(QNetworkReply* reply)
{
- d->contentType = reply->rawHeader("Content-Type");
- d->contentDisposition = reply->rawHeader("Content-Disposition");
+ d->contentType = reply->rawHeader("Content-Type");
+ d->contentDisposition = reply->rawHeader("Content-Disposition");
d->data = reply;
return Success;
}
@@ -224,7 +224,7 @@ QIODevice* GetContentThumbnailJob::data() const
BaseJob::Status GetContentThumbnailJob::parseReply(QNetworkReply* reply)
{
- d->contentType = reply->rawHeader("Content-Type");
+ d->contentType = reply->rawHeader("Content-Type");
d->data = reply;
return Success;
}
@@ -284,7 +284,7 @@ BaseJob::Status GetUrlPreviewJob::parseJson(const QJsonDocument& data)
class GetConfigJob::Private
{
public:
- Omittable<double> uploadSize;
+ Omittable<qint64> uploadSize;
};
QUrl GetConfigJob::makeRequestUrl(QUrl baseUrl)
@@ -304,7 +304,7 @@ GetConfigJob::GetConfigJob()
GetConfigJob::~GetConfigJob() = default;
-Omittable<double> GetConfigJob::uploadSize() const
+Omittable<qint64> GetConfigJob::uploadSize() const
{
return d->uploadSize;
}
@@ -312,7 +312,7 @@ Omittable<double> GetConfigJob::uploadSize() const
BaseJob::Status GetConfigJob::parseJson(const QJsonDocument& data)
{
auto json = data.object();
- d->uploadSize = fromJson<double>(json.value("m.upload.size"_ls));
+ d->uploadSize = fromJson<qint64>(json.value("m.upload.size"_ls));
return Success;
}