aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-26 12:57:23 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-29 08:21:27 +0200
commitc2e9256b1c334bdadcc208429084cbc83496fb4b (patch)
treee13329c8f8f3c3c23e53533ed5e14bf91c1ccd1e /lib/jobs
parent0e1f49a4ab8e6903709f387c154c2bf131a1370c (diff)
downloadlibquotient-c2e9256b1c334bdadcc208429084cbc83496fb4b.tar.gz
libquotient-c2e9256b1c334bdadcc208429084cbc83496fb4b.zip
Cleanup and address Sonar warnings
Diffstat (limited to 'lib/jobs')
-rw-r--r--lib/jobs/downloadfilejob.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/jobs/downloadfilejob.cpp b/lib/jobs/downloadfilejob.cpp
index 99c2bf9b..759d52c9 100644
--- a/lib/jobs/downloadfilejob.cpp
+++ b/lib/jobs/downloadfilejob.cpp
@@ -139,11 +139,11 @@ BaseJob::Status DownloadFileJob::prepareResult()
#endif
d->targetFile->close();
if (!d->targetFile->remove()) {
- qCWarning(JOBS) << "Failed to remove the target file placeholder";
+ qWarning(JOBS) << "Failed to remove the target file placeholder";
return { FileError, "Couldn't finalise the download" };
}
if (!d->tempFile->rename(d->targetFile->fileName())) {
- qCWarning(JOBS) << "Failed to rename" << d->tempFile->fileName()
+ qWarning(JOBS) << "Failed to rename" << d->tempFile->fileName()
<< "to" << d->targetFile->fileName();
return { FileError, "Couldn't finalise the download" };
}
@@ -157,12 +157,12 @@ BaseJob::Status DownloadFileJob::prepareResult()
decryptFile(*d->tempFile, *d->encryptedFileMetadata, tempTempFile);
d->tempFile->close();
if (!d->tempFile->remove()) {
- qCWarning(JOBS)
+ qWarning(JOBS)
<< "Failed to remove the decrypted file placeholder";
return { FileError, "Couldn't finalise the download" };
}
if (!tempTempFile.rename(d->tempFile->fileName())) {
- qCWarning(JOBS) << "Failed to rename" << tempTempFile.fileName()
+ qWarning(JOBS) << "Failed to rename" << tempTempFile.fileName()
<< "to" << d->tempFile->fileName();
return { FileError, "Couldn't finalise the download" };
}
@@ -173,6 +173,6 @@ BaseJob::Status DownloadFileJob::prepareResult()
}
#endif
}
- qCDebug(JOBS) << "Saved a file as" << targetFileName();
+ qDebug(JOBS) << "Saved a file as" << targetFileName();
return Success;
}