From abf19060e20b00b56812a726b1e8fa9d4c6cfd48 Mon Sep 17 00:00:00 2001 From: Martin Petersson Date: Mon, 27 Feb 2012 15:11:09 +0100 Subject: QNetwork: fix compilation with "-no-feature-bearermanagement" Task-number: QTBUG-23239 Change-Id: I12f89a4e595231738985ca0cf3179fee7de9fa72 Reviewed-by: Shane Kearns --- src/network/access/qnetworkaccesshttpbackend.cpp | 2 +- src/network/kernel/qhostinfo.cpp | 2 ++ src/network/kernel/qhostinfo_p.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/network/access/qnetworkaccesshttpbackend.cpp b/src/network/access/qnetworkaccesshttpbackend.cpp index 68451f9..14963d0 100644 --- a/src/network/access/qnetworkaccesshttpbackend.cpp +++ b/src/network/access/qnetworkaccesshttpbackend.cpp @@ -521,7 +521,7 @@ void QNetworkAccessHttpBackend::postRequest() // Create the HTTP thread delegate QHttpThreadDelegate *delegate = new QHttpThreadDelegate; -#ifndef Q_NO_BEARERMANAGEMENT +#ifndef QT_NO_BEARERMANAGEMENT QVariant v(property("_q_networksession")); if (v.isValid()) delegate->networkSession = qvariant_cast >(v); diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp index 50a6129..f3a57ec 100644 --- a/src/network/kernel/qhostinfo.cpp +++ b/src/network/kernel/qhostinfo.cpp @@ -287,12 +287,14 @@ QHostInfo QHostInfoPrivate::fromName(const QString &name, QSharedPointer) { return QHostInfoAgent::fromName(hostName); } #endif +#endif /*! diff --git a/src/network/kernel/qhostinfo_p.h b/src/network/kernel/qhostinfo_p.h index 13208ed..bac9b96 100644 --- a/src/network/kernel/qhostinfo_p.h +++ b/src/network/kernel/qhostinfo_p.h @@ -101,7 +101,9 @@ class QHostInfoAgent : public QObject Q_OBJECT public: static QHostInfo fromName(const QString &hostName); +#ifndef QT_NO_BEARERMANAGEMENT static QHostInfo fromName(const QString &hostName, QSharedPointer networkSession); +#endif #ifdef Q_OS_SYMBIAN static int lookupHost(const QString &name, QObject *receiver, const char *member); -- cgit v0.12