1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00

Fix slot signature.

This commit is contained in:
Andrew Wason 2011-09-27 16:02:41 -04:00 committed by Matthew Mongeau
parent 053010a3a4
commit 9cfc6b10f1
2 changed files with 3 additions and 3 deletions

View file

@ -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 file

@ -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: