Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix slot signature.

  • Loading branch information...
commit 9cfc6b10f1f03ad0416e7498b502fe153b76ae63 1 parent 053010a
@rectalogic rectalogic authored halogenandtoast committed
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/WebPage.cpp
  2. +1 −1  src/WebPage.h
View
4 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<QSslError> &)), this, SLOT(ignoreSslErrors(QNetworkReply *, QList<QSslError> &)));
+ connect(manager, SIGNAL(sslErrors(QNetworkReply *, QList<QSslError>)), this, SLOT(ignoreSslErrors(QNetworkReply *, QList<QSslError>)));
}
void WebPage::loadJavascript() {
@@ -193,7 +193,7 @@ void WebPage::replyFinished(QNetworkReply *reply) {
}
}
-void WebPage::ignoreSslErrors(QNetworkReply *reply, QList<QSslError> &errors) {
+void WebPage::ignoreSslErrors(QNetworkReply *reply, const QList<QSslError> &errors) {
reply->ignoreSslErrors(errors);
}
View
2  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<QSslError> &);
+ void ignoreSslErrors(QNetworkReply *reply, const QList<QSslError> &);
void handleUnsupportedContent(QNetworkReply *reply);
signals:
Please sign in to comment.
Something went wrong with that request. Please try again.