diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-11-19 11:11:58 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-11-20 09:10:35 +0100 |
| commit | 27d792869b30721cecf493a54d89e9df6e75a6fa (patch) | |
| tree | 81a6dea6583158e9b10f60d0594dc11661612348 /src/corelib/ipc/qtipccommon.cpp | |
| parent | 18ec9c7b62f6f1a57cd544bbd2d3e9187f8cd990 (diff) | |
QNativeIpcKey: normalize docs for qHash()
The C++ standard forces¹ us to overload the hidden friend qHash()
implementation instead of defaulting `seed` to zero. That doesn't mean
we need to reflect that technicality in the docs, esp. if it forces us
to deviate from the standard phrasing of qHash() functions to say
something about the default value of `seed` (which would, for a
defaulted argument, be shown in the docs).
Present the qHash() function in the canonical form to QDoc. This is a
(forwards and backwards) BC way to solve the issue. Going forward, the
correct fix should be to have qHash() functions call a private
hash(seed) member function instead, to fulfill the pointless
requirement of [1].
¹ [dcl.fct.default]/4, last sentence
Amends c2310f8e03cf30222cea59b3c556d060e1710015.
Pick-to: 6.8
Task-number: QTBUG-129574
Change-Id: I7890a0df092c9780601fc4c25e23d70d92db47e1
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/corelib/ipc/qtipccommon.cpp')
| -rw-r--r-- | src/corelib/ipc/qtipccommon.cpp | 6 |
1 files changed, 0 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. |
