Fix QtNetwork compilation for -qconfig large

Disables two variables completely in QNetworkProxy

Change-Id: I76483310b37032c44a25e05fb879de1e9d5282f5
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
This commit is contained in:
Tasuku Suzuki 2012-05-20 21:42:36 +09:00 committed by Qt by Nokia
parent ca86d1e8c3
commit 63ed8bf07e

View File

@ -246,8 +246,12 @@ public:
: mutex(QMutex::Recursive)
, applicationLevelProxy(0)
, applicationLevelProxyFactory(0)
#ifndef QT_NO_SOCKS5
, socks5SocketEngineHandler(0)
#endif
#ifndef QT_NO_HTTP
, httpSocketEngineHandler(0)
#endif
{
#ifndef QT_NO_SOCKS5
socks5SocketEngineHandler = new QSocks5SocketEngineHandler();
@ -261,8 +265,12 @@ public:
{
delete applicationLevelProxy;
delete applicationLevelProxyFactory;
#ifndef QT_NO_SOCKS5
delete socks5SocketEngineHandler;
#endif
#ifndef QT_NO_HTTP
delete httpSocketEngineHandler;
#endif
}
void setApplicationProxy(const QNetworkProxy &proxy)
@ -297,8 +305,12 @@ private:
QMutex mutex;
QNetworkProxy *applicationLevelProxy;
QNetworkProxyFactory *applicationLevelProxyFactory;
#ifndef QT_NO_SOCKS5
QSocks5SocketEngineHandler *socks5SocketEngineHandler;
#endif
#ifndef QT_NO_HTTP
QHttpSocketEngineHandler *httpSocketEngineHandler;
#endif
};
QList<QNetworkProxy> QGlobalNetworkProxy::proxyForQuery(const QNetworkProxyQuery &query)