[Qt] Build broken if qt missing openssl
authormahesh.kulkarni@nokia.com <mahesh.kulkarni@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Feb 2012 12:24:50 +0000 (12:24 +0000)
committermahesh.kulkarni@nokia.com <mahesh.kulkarni@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Feb 2012 12:24:50 +0000 (12:24 +0000)
https://bugs.webkit.org/show_bug.cgi?id=77894

Reviewed by Chang Shu.

Build fix. No new test content.

* WebProcess/qt/QtNetworkAccessManager.cpp:
(WebKit::QtNetworkAccessManager::onSslErrors):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107070 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/qt/QtNetworkAccessManager.cpp

index 5774e59..0340c9d 100644 (file)
@@ -1,3 +1,15 @@
+2012-02-08  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
+
+        [Qt] Build broken if qt missing openssl
+        https://bugs.webkit.org/show_bug.cgi?id=77894
+
+        Reviewed by Chang Shu.
+
+        Build fix. No new test content. 
+
+        * WebProcess/qt/QtNetworkAccessManager.cpp:
+        (WebKit::QtNetworkAccessManager::onSslErrors):
+
 2012-02-08  Yael Aharon  <yael.aharon@nokia.com>
 
         [WK2] Text notifications should have an iconURL
index aa48756..28efc0c 100644 (file)
@@ -111,8 +111,14 @@ void QtNetworkAccessManager::onSslErrors(QNetworkReply* reply, const QList<QSslE
     if (webPage->sendSync(
         Messages::WebPageProxy::CertificateVerificationRequest(hostname),
         Messages::WebPageProxy::CertificateVerificationRequest::Reply(ignoreErrors))) {
-        if (ignoreErrors)
+        if (ignoreErrors) {
+#ifndef QT_NO_OPENSSL
             reply->ignoreSslErrors(qSslErrors);
+#else
+            Q_UNUSED(qSslErrors);
+            reply->ignoreSslErrors();
+#endif
+        }
     }
 }