diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp index fc36d0a962..6662ae1eee 100644 --- a/src/network/kernel/qhostinfo.cpp +++ b/src/network/kernel/qhostinfo.cpp @@ -234,7 +234,7 @@ static int nextId() \sa abortHostLookup(), addresses(), error(), fromName() */ -int QHostInfo::lookupHost(const QString &name, QObject *receiver, const char *member) +int QHostInfo::lookupHost(const QString &name, QT7_ONLY(const) QObject *receiver, const char *member) { return QHostInfo::lookupHostImpl(name, receiver, nullptr, member); } diff --git a/src/network/kernel/qhostinfo.h b/src/network/kernel/qhostinfo.h index b4b66f43fe..12a2db7e8b 100644 --- a/src/network/kernel/qhostinfo.h +++ b/src/network/kernel/qhostinfo.h @@ -48,7 +48,7 @@ public: void setLookupId(int id); int lookupId() const; - static int lookupHost(const QString &name, QObject *receiver, const char *member); + static int lookupHost(const QString &name, QT7_ONLY(const) QObject *receiver, const char *member); static void abortHostLookup(int lookupId); static QHostInfo fromName(const QString &name);