From 9cfc6b10f1f03ad0416e7498b502fe153b76ae63 Mon Sep 17 00:00:00 2001 From: Andrew Wason Date: Tue, 27 Sep 2011 16:02:41 -0400 Subject: [PATCH] Fix slot signature. --- src/WebPage.cpp | 4 ++-- src/WebPage.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/WebPage.cpp b/src/WebPage.cpp index 223b074..6729a8c 100644 --- a/src/WebPage.cpp +++ b/src/WebPage.cpp @@ -27,7 +27,7 @@ void WebPage::setCustomNetworkAccessManager() { manager->setCookieJar(new NetworkCookieJar()); this->setNetworkAccessManager(manager); connect(manager, SIGNAL(finished(QNetworkReply *)), this, SLOT(replyFinished(QNetworkReply *))); - connect(manager, SIGNAL(sslErrors(QNetworkReply *, QList &)), this, SLOT(ignoreSslErrors(QNetworkReply *, QList &))); + connect(manager, SIGNAL(sslErrors(QNetworkReply *, QList)), this, SLOT(ignoreSslErrors(QNetworkReply *, QList))); } void WebPage::loadJavascript() { @@ -193,7 +193,7 @@ void WebPage::replyFinished(QNetworkReply *reply) { } } -void WebPage::ignoreSslErrors(QNetworkReply *reply, QList &errors) { +void WebPage::ignoreSslErrors(QNetworkReply *reply, const QList &errors) { reply->ignoreSslErrors(errors); } diff --git a/src/WebPage.h b/src/WebPage.h index 32df249..44f7d3a 100644 --- a/src/WebPage.h +++ b/src/WebPage.h @@ -25,7 +25,7 @@ class WebPage : public QWebPage { QString pageHeaders(); void frameCreated(QWebFrame *); void replyFinished(QNetworkReply *reply); - void ignoreSslErrors(QNetworkReply *reply, QList &); + void ignoreSslErrors(QNetworkReply *reply, const QList &); void handleUnsupportedContent(QNetworkReply *reply); signals: