diff options
-rw-r--r-- | src/corelib/global/qglobal.cpp | 2 | ||||
-rw-r--r-- | src/corelib/global/qglobal.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index 0ca1fc7ef0..89fc6c85cb 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -1061,7 +1061,7 @@ static_assert(sizeof(qint64) == 8, "Internal error, qint64 is misdefined"); */ /*! \typedef QFunctionPointer - \relates <QtGlobal> + \relates <QFunctionPointer> This is a typedef for \c{void (*)()}, a pointer to a function that takes no arguments and returns void. diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 9249becc27..147933066f 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -1035,6 +1035,9 @@ Q_CORE_EXPORT void qBadAlloc(); template <typename T> inline T *q_check_ptr(T *p) { Q_CHECK_PTR(p); return p; } +#if 0 +#pragma qt_class(QFunctionPointer) +#endif typedef void (*QFunctionPointer)(); #if !defined(Q_UNIMPLEMENTED) |