diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2023-09-04 20:10:45 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2023-09-06 01:50:16 +0200 |
commit | dd50d58af267bd3b79d1ca31b920d72b925d5a37 (patch) | |
tree | b59acfc2510bf3f50bb2b3ffce438fa0c9c94934 /src/network/kernel | |
parent | d5eed2c5f54da60be9bc5966a6be7c18dc77011f (diff) |
QHostInfo: add a Qt 7 note
Change-Id: I45ee4eba1f7ded358acaccf678e4e12a006b91b6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/kernel')
-rw-r--r-- | src/network/kernel/qhostinfo.cpp | 2 | ||||
-rw-r--r-- | 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); |