clean up warnings

This commit is contained in:
Rasmus Karlsson
2018-09-30 17:15:17 +00:00
parent a2fb4ca104
commit cd571a7e25
7 changed files with 28 additions and 30 deletions
+3 -3
View File
@@ -1,5 +1,6 @@
#include "DownloadManager.hpp"
#include "debug/Log.hpp"
#include "singletons/Paths.hpp"
#include <QDesktopServices>
@@ -42,8 +43,7 @@ void DownloadManager::setFile(QString fileURL, const QString &channelName)
void DownloadManager::onDownloadProgress(qint64 bytesRead, qint64 bytesTotal)
{
qDebug(QString::number(bytesRead).toLatin1() + " - " +
QString::number(bytesTotal).toLatin1());
log("Download progress: {}/{}", bytesRead, bytesTotal);
}
void DownloadManager::onFinished(QNetworkReply *reply)
@@ -53,7 +53,7 @@ void DownloadManager::onFinished(QNetworkReply *reply)
qDebug("file is downloaded successfully.");
} break;
default: {
qDebug(reply->errorString().toLatin1());
qDebug() << reply->errorString().toLatin1();
};
}