diff options
Diffstat (limited to 'src/network/ssl/qocspresponse.h')
-rw-r--r-- | src/network/ssl/qocspresponse.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/network/ssl/qocspresponse.h b/src/network/ssl/qocspresponse.h index 1fc3377d58..8f184924c7 100644 --- a/src/network/ssl/qocspresponse.h +++ b/src/network/ssl/qocspresponse.h @@ -97,16 +97,19 @@ public: void swap(QOcspResponse &other) noexcept { d.swap(other.d); } private: + bool isEqual(const QOcspResponse &other) const; friend class QSslSocketBackendPrivate; - friend Q_NETWORK_EXPORT bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs); + friend bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs) + { return lhs.isEqual(rhs); } + friend bool operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs) + { return !lhs.isEqual(rhs); } + friend Q_NETWORK_EXPORT size_t qHash(const QOcspResponse &response, size_t seed) noexcept; QSharedDataPointer<QOcspResponsePrivate> d; }; -inline bool operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs) { return !(lhs == rhs); } - Q_DECLARE_SHARED(QOcspResponse) QT_END_NAMESPACE |