diff options
author | Maurice Kalinowski <maurice.kalinowski@digia.com> | 2014-03-17 15:34:35 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-18 07:47:51 +0100 |
commit | 48c408667580f8c10afcc3579d67a7ae62544396 (patch) | |
tree | 5c70c5db62d9add623a11b286cbffbda3be6dfc3 /src/websockets/qwebsocket_p.cpp | |
parent | 965899ddd1dcbc07c8b6d199fac74e0398bb8b57 (diff) | |
download | qtwebsockets-48c408667580f8c10afcc3579d67a7ae62544396.tar.gz |
fix compilation with QT_NO_NETWORKPROXY
Change-Id: Ice7ad51cbbde0ef2459642309c32dd392463754d
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Diffstat (limited to 'src/websockets/qwebsocket_p.cpp')
-rw-r--r-- | src/websockets/qwebsocket_p.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/websockets/qwebsocket_p.cpp b/src/websockets/qwebsocket_p.cpp index 6770388..fb6486e 100644 --- a/src/websockets/qwebsocket_p.cpp +++ b/src/websockets/qwebsocket_p.cpp @@ -79,8 +79,9 @@ QWebSocketConfiguration::QWebSocketConfiguration() : m_ignoreSslErrors(false), #endif #ifndef QT_NO_NETWORKPROXY - m_proxy(QNetworkProxy::DefaultProxy) + m_proxy(QNetworkProxy::DefaultProxy), #endif + m_pSocket(Q_NULLPTR) { } @@ -541,8 +542,10 @@ void QWebSocketPrivate::makeConnections(const QTcpSocket *pTcpSocket) QObject::connect(pTcpSocket, static_cast<ASErrorSignal>(&QAbstractSocket::error), q, static_cast<WSErrorSignal>(&QWebSocket::error)); +#ifndef QT_NO_NETWORKPROXY QObject::connect(pTcpSocket, &QAbstractSocket::proxyAuthenticationRequired, q, &QWebSocket::proxyAuthenticationRequired); +#endif QObject::connect(pTcpSocket, &QAbstractSocket::readChannelFinished, q, &QWebSocket::readChannelFinished); QObject::connect(pTcpSocket, &QAbstractSocket::aboutToClose, q, &QWebSocket::aboutToClose); |