doc: Add template clauses in qhostinfo.cpp
A few \fn commands were missing the template clause now required by clang-qdoc. This update adds the template clauses. It also changes an instance of Q_QDOC to Q_CLANG_QDOC. Change-Id: I2850d43d98debb80e01c36a524e0c00651a89298 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
parent
c45947aeef
commit
a61c6a7a2e
@ -300,7 +300,7 @@ int QHostInfo::lookupHost(const QString &name, QObject *receiver,
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn int QHostInfo::lookupHost(const QString &name, const QObject *receiver, PointerToMemberFunction function)
|
||||
\fn template<typename PointerToMemberFunction> int QHostInfo::lookupHost(const QString &name, const QObject *receiver, PointerToMemberFunction function)
|
||||
|
||||
\since 5.9
|
||||
|
||||
@ -319,7 +319,7 @@ int QHostInfo::lookupHost(const QString &name, QObject *receiver,
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn int QHostInfo::lookupHost(const QString &name, Functor functor)
|
||||
\fn template<typename Functor> int QHostInfo::lookupHost(const QString &name, Functor functor)
|
||||
|
||||
\since 5.9
|
||||
|
||||
@ -337,7 +337,7 @@ int QHostInfo::lookupHost(const QString &name, QObject *receiver,
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn int QHostInfo::lookupHost(const QString &name, const QObject *context, Functor functor)
|
||||
\fn template<typename Functor> int QHostInfo::lookupHost(const QString &name, const QObject *context, Functor functor)
|
||||
|
||||
\since 5.9
|
||||
|
||||
|
@ -90,7 +90,7 @@ public:
|
||||
static QString localHostName();
|
||||
static QString localDomainName();
|
||||
|
||||
#ifdef Q_QDOC
|
||||
#ifdef Q_CLANG_QDOC
|
||||
template<typename PointerToMemberFunction>
|
||||
static int QHostInfo::lookupHost(const QString &name, const QObject *receiver,
|
||||
PointerToMemberFunction function);
|
||||
|
Loading…
Reference in New Issue
Block a user