From dd50d58af267bd3b79d1ca31b920d72b925d5a37 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Mon, 4 Sep 2023 20:10:45 +0200 Subject: [PATCH] QHostInfo: add a Qt 7 note Change-Id: I45ee4eba1f7ded358acaccf678e4e12a006b91b6 Reviewed-by: Thiago Macieira --- src/network/kernel/qhostinfo.cpp | 2 +- src/network/kernel/qhostinfo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);