Commit 7ba251b1 authored by Ilya Pominov's avatar Ilya Pominov Committed by Elvis Angelaccio
Browse files

Fix ExtractJob warnings

- warning: c++11 range-loop might detach Qt container (QVector) [clazy-
range-loop-detach]
- warning: comparison of integers of different signs: 'qulonglong' (aka
'unsigned long long') and 'qint64' (aka 'long long')
parent 40802586
Pipeline #244916 passed with stage
in 3 minutes and 1 second
......@@ -554,13 +554,13 @@ void ExtractJob::doWork()
<< "Options:" << m_options;
qulonglong totalUncompressedSize = 0;
for (Archive::Entry *entry : m_entries) {
for (Archive::Entry *entry : qAsConst(m_entries)) {
totalUncompressedSize += entry->size();
}
QStorageInfo destinationStorage(m_destinationDir);
if (totalUncompressedSize > destinationStorage.bytesAvailable()) {
if (totalUncompressedSize > static_cast<qulonglong>(destinationStorage.bytesAvailable())) {
onError(xi18n("No space available on device <filename>%1</filename>", m_destinationDir), QString(), Kerfuffle::DestinationNotWritableError);
onFinished(false);
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment