diff options
Diffstat (limited to 'lib/networkaccessmanager.cpp')
-rw-r--r-- | lib/networkaccessmanager.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/networkaccessmanager.cpp b/lib/networkaccessmanager.cpp index 174ac16e..9ac589b8 100644 --- a/lib/networkaccessmanager.cpp +++ b/lib/networkaccessmanager.cpp @@ -25,14 +25,14 @@ using namespace QMatrixClient; class NetworkAccessManager::Private { - public: +public: QList<QSslError> ignoredSslErrors; }; NetworkAccessManager::NetworkAccessManager(QObject* parent) - : d(std::make_unique<Private>()) -{ -} + : QNetworkAccessManager(parent) + , d(std::make_unique<Private>()) +{} QList<QSslError> NetworkAccessManager::ignoredSslErrors() const { @@ -69,10 +69,9 @@ NetworkAccessManager* NetworkAccessManager::instance() NetworkAccessManager::~NetworkAccessManager() = default; QNetworkReply* NetworkAccessManager::createRequest( - Operation op, const QNetworkRequest& request, QIODevice* outgoingData) + Operation op, const QNetworkRequest& request, QIODevice* outgoingData) { - auto reply = - QNetworkAccessManager::createRequest(op, request, outgoingData); + auto reply = QNetworkAccessManager::createRequest(op, request, outgoingData); reply->ignoreSslErrors(d->ignoredSslErrors); return reply; } |