Permalink
Browse files

Fix slot signature.

  • Loading branch information...
1 parent 053010a commit 9cfc6b10f1f03ad0416e7498b502fe153b76ae63 @rectalogic rectalogic committed with halogenandtoast Sep 27, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/WebPage.cpp
  2. +1 −1 src/WebPage.h
View
@@ -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
@@ -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:

0 comments on commit 9cfc6b1

Please sign in to comment.