summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/ipc/qtipccommon.cpp6
-rw-r--r--src/corelib/ipc/qtipccommon.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/src/corelib/ipc/qtipccommon.cpp b/src/corelib/ipc/qtipccommon.cpp
index 553f3dd1996..2b71456bdc1 100644
--- a/src/corelib/ipc/qtipccommon.cpp
+++ b/src/corelib/ipc/qtipccommon.cpp
@@ -497,12 +497,6 @@ void QNativeIpcKey::setNativeKey_internal(const QString &)
}
/*!
- \fn size_t QNativeIpcKey::qHash(const QNativeIpcKey &ipcKey) noexcept
-
- Returns the hash value for \a ipcKey, using a default seed of \c 0.
-*/
-
-/*!
\fn size_t QNativeIpcKey::qHash(const QNativeIpcKey &ipcKey, size_t seed) noexcept
Returns the hash value for \a ipcKey, using \a seed to seed the calculation.
diff --git a/src/corelib/ipc/qtipccommon.h b/src/corelib/ipc/qtipccommon.h
index 74f30cb6a44..d520a4dd682 100644
--- a/src/corelib/ipc/qtipccommon.h
+++ b/src/corelib/ipc/qtipccommon.h
@@ -153,9 +153,13 @@ private:
constexpr bool isSlowPath() const noexcept
{ return Q_UNLIKELY(d); }
+#ifdef Q_QDOC
+ friend size_t qHash(const QNativeIpcKey &ipcKey, size_t seed = 0) noexcept { return 0; }
+#else
friend Q_CORE_EXPORT size_t qHash(const QNativeIpcKey &ipcKey, size_t seed) noexcept;
friend size_t qHash(const QNativeIpcKey &ipcKey) noexcept
{ return qHash(ipcKey, 0); }
+#endif
Q_CORE_EXPORT void copy_internal(const QNativeIpcKey &other);
Q_CORE_EXPORT void move_internal(QNativeIpcKey &&other) noexcept;