From 7c7e6b4e76364cbfd630d14be94157d83bf92eca Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Sun, 2 Nov 2014 16:12:05 +0100 Subject: [PATCH] Some refactors. --- src/network-web/basenetworkaccessmanager.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/network-web/basenetworkaccessmanager.cpp b/src/network-web/basenetworkaccessmanager.cpp index 76687a420..4e28e5eef 100755 --- a/src/network-web/basenetworkaccessmanager.cpp +++ b/src/network-web/basenetworkaccessmanager.cpp @@ -26,8 +26,7 @@ BaseNetworkAccessManager::BaseNetworkAccessManager(QObject *parent) : QNetworkAccessManager(parent) { - connect(this, SIGNAL(sslErrors(QNetworkReply*,QList)), - this, SLOT(onSslErrors(QNetworkReply*,QList))); + connect(this, SIGNAL(sslErrors(QNetworkReply*,QList)), this, SLOT(onSslErrors(QNetworkReply*,QList))); loadSettings(); } @@ -64,11 +63,8 @@ void BaseNetworkAccessManager::loadSettings() { qDebug("Settings of BaseNetworkAccessManager loaded."); } -void BaseNetworkAccessManager::onSslErrors(QNetworkReply *reply, - const QList &error) { - qDebug("SSL errors for '%s': '%s' (code %d).", qPrintable(reply->url().toString()), - qPrintable(reply->errorString()), (int) reply->error()); - +void BaseNetworkAccessManager::onSslErrors(QNetworkReply *reply, const QList &error) { + qDebug("SSL errors for '%s': '%s' (code %d).", qPrintable(reply->url().toString()), qPrintable(reply->errorString()), (int) reply->error()); reply->ignoreSslErrors(error); }