Doc: Add default value for seed param to all qHash overloads

Pick-to: 6.4
Change-Id: I4d559ccd60ec54d2584dceecaece7e0899c0eea9
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
Kai Köhne 2022-07-13 13:07:14 +02:00
parent d6b38be3df
commit 74ed70f17a
7 changed files with 5 additions and 11 deletions

View File

@ -1415,7 +1415,7 @@ uint qt_hash(QStringView key, uint chained) noexcept
Returns the hash value for the \a key, using \a seed to seed the calculation.
*/
/*! \fn size_t qHash(float key, size_t seed) noexcept
/*! \fn size_t qHash(float key, size_t seed = 0) noexcept
\relates QHash
\since 5.3

View File

@ -187,7 +187,7 @@
*/
/*!
\fn template <typename T, typename Tag> qHash(QTaggedPointer<T, Tag> key, std::size_t seed)
\fn template <typename T, typename Tag> qHash(QTaggedPointer<T, Tag> key, std::size_t seed = 0)
\relates QTaggedPointer
Returns the hash value for the \a key, using \a seed to seed the calculation.

View File

@ -525,7 +525,6 @@ QDebug operator<<(QDebug debug, const QVersionNumber &version)
#endif
/*!
\fn size_t qHash(const QVersionNumber &key, size_t seed)
\relates QHash
\since 5.6
@ -723,7 +722,6 @@ QDebug operator<<(QDebug debug, const QTypeRevision &revision)
#endif
/*!
\fn size_t qHash(const QTypeRevision &key, size_t seed)
\relates QHash
\since 6.0

View File

@ -296,7 +296,7 @@ QVulkanInstance::~QVulkanInstance()
*/
/*!
\fn size_t qHash(const QVulkanLayer &key, size_t seed)
\fn size_t qHash(const QVulkanLayer &key, size_t seed = 0)
\since 5.10
\relates QVulkanLayer
@ -340,7 +340,7 @@ QVulkanInstance::~QVulkanInstance()
*/
/*!
\fn size_t qHash(const QVulkanExtension &key, size_t seed)
\fn size_t qHash(const QVulkanExtension &key, size_t seed = 0)
\since 5.10
\relates QVulkanExtension

View File

@ -201,8 +201,6 @@ bool QOcspResponse::isEqual(const QOcspResponse &other) const
}
/*!
\fn size_t qHash(const QOcspResponse &response, size_t seed)
Returns the hash value for the \a response, using \a seed to seed the calculation.
\since 5.13

View File

@ -955,8 +955,6 @@ QString QSslCertificate::subjectDisplayName() const
}
/*!
\fn size_t qHash(const QSslCertificate &key, size_t seed)
Returns the hash value for the \a key, using \a seed to seed the calculation.
\since 5.4
\relates QHash

View File

@ -160,7 +160,7 @@ bool QSslEllipticCurve::isTlsNamedCurve() const noexcept
*/
/*!
\fn size_t qHash(QSslEllipticCurve curve, size_t seed)
\fn size_t qHash(QSslEllipticCurve curve, size_t seed = 0)
\since 5.5
\relates QHash