Mark qHash(QOcspResponse) as noexcept
Because it is. Change-Id: I8d5204c30884b2c8656615a7d82428c539672d28 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
This commit is contained in:
parent
65b8f59e04
commit
e7b1c500d4
@ -239,7 +239,7 @@ Q_NETWORK_EXPORT bool operator==(const QOcspResponse &lhs, const QOcspResponse &
|
|||||||
\since 5.13
|
\since 5.13
|
||||||
\relates QHash
|
\relates QHash
|
||||||
*/
|
*/
|
||||||
uint qHash(const QOcspResponse &response, uint seed)
|
uint qHash(const QOcspResponse &response, uint seed) noexcept
|
||||||
{
|
{
|
||||||
const QOcspResponsePrivate *d = response.d.data();
|
const QOcspResponsePrivate *d = response.d.data();
|
||||||
Q_ASSERT(d);
|
Q_ASSERT(d);
|
||||||
|
@ -73,7 +73,7 @@ enum class QOcspRevocationReason
|
|||||||
};
|
};
|
||||||
|
|
||||||
class QOcspResponse;
|
class QOcspResponse;
|
||||||
Q_NETWORK_EXPORT uint qHash(const QOcspResponse &response, uint seed = 0);
|
Q_NETWORK_EXPORT uint qHash(const QOcspResponse &response, uint seed = 0) noexcept;
|
||||||
|
|
||||||
class QOcspResponsePrivate;
|
class QOcspResponsePrivate;
|
||||||
class Q_NETWORK_EXPORT QOcspResponse
|
class Q_NETWORK_EXPORT QOcspResponse
|
||||||
@ -100,7 +100,7 @@ private:
|
|||||||
|
|
||||||
friend class QSslSocketBackendPrivate;
|
friend class QSslSocketBackendPrivate;
|
||||||
friend Q_NETWORK_EXPORT bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs);
|
friend Q_NETWORK_EXPORT bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs);
|
||||||
friend Q_NETWORK_EXPORT uint qHash(const QOcspResponse &response, uint seed);
|
friend Q_NETWORK_EXPORT uint qHash(const QOcspResponse &response, uint seed) noexcept;
|
||||||
|
|
||||||
QSharedDataPointer<QOcspResponsePrivate> d;
|
QSharedDataPointer<QOcspResponsePrivate> d;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user