diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-24 18:20:04 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-24 22:29:29 +0100 |
commit | e617f0151df9a5edbefeb2c36d306a2989a278af (patch) | |
tree | c3c80fcab98a3bf3f0a017350f3f17956961fa98 /lib/jobs/downloadfilejob.cpp | |
parent | 3bfe40e40183821557845456349e1079af7b4e25 (diff) | |
download | libquotient-e617f0151df9a5edbefeb2c36d306a2989a278af.tar.gz libquotient-e617f0151df9a5edbefeb2c36d306a2989a278af.zip |
Fix clang-tidy/clazy warnings
(cherry picked from commit 0a2acd750a4155969092be674ed3dd9a71b2354f)
Diffstat (limited to 'lib/jobs/downloadfilejob.cpp')
-rw-r--r-- | lib/jobs/downloadfilejob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jobs/downloadfilejob.cpp b/lib/jobs/downloadfilejob.cpp index 7b4cf690..0011a97c 100644 --- a/lib/jobs/downloadfilejob.cpp +++ b/lib/jobs/downloadfilejob.cpp @@ -64,7 +64,7 @@ void DownloadFileJob::onSentRequest(QNetworkReply* reply) return; auto sizeHeader = reply->header(QNetworkRequest::ContentLengthHeader); if (sizeHeader.isValid()) { - auto targetSize = sizeHeader.value<qint64>(); + auto targetSize = sizeHeader.toLongLong(); if (targetSize != -1) if (!d->tempFile->resize(targetSize)) { qCWarning(JOBS) << "Failed to allocate" << targetSize |