Skip to content

Commit

Permalink
Fix slot signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
rectalogic authored and halogenandtoast committed Oct 14, 2011
1 parent 053010a commit 9cfc6b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/WebPage.cpp
Expand Up @@ -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() {
Expand Down Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/WebPage.h
Expand Up @@ -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:
Expand Down

0 comments on commit 9cfc6b1

Please sign in to comment.