summaryrefslogtreecommitdiffstats
path: root/src/network/access/qhstspolicy.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-30 14:23:27 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-30 17:27:29 +0100
commit57e57d9bcda868abcfb552e1247b391162c0dff9 (patch)
tree7752a32e796d74c8d01a447d1d7376a02cbf7fcc /src/network/access/qhstspolicy.cpp
parentd51d312c86128150283b6a41f0daac18d9e57f32 (diff)
Hide comparison operators for QtNetwork value types from non-ADL
Make them hidden friends, add a private isEqual helper where needed. Adjust and add documentation. Fixes: QTBUG-87976 Change-Id: If7c19eeab5be7452364eb76193981100f5516d6b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/network/access/qhstspolicy.cpp')
-rw-r--r--src/network/access/qhstspolicy.cpp21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/network/access/qhstspolicy.cpp b/src/network/access/qhstspolicy.cpp
index 46c9c22510..3d15cba407 100644
--- a/src/network/access/qhstspolicy.cpp
+++ b/src/network/access/qhstspolicy.cpp
@@ -86,12 +86,25 @@ public:
};
/*!
- Returns \c true if the two policies have the same host and expiration date
- while agreeing on whether to include or exclude subdomains.
+ \fn bool QHstsPolicy::operator==(const QHstsPolicy &lhs, const QHstsPolicy &rhs)
+
+ Returns \c true if the two policies \a lhs and \a rhs have the same host and
+ expiration date while agreeing on whether to include or exclude subdomains.
+*/
+
+/*!
+ \fn bool QHstsPolicy::operator!=(const QHstsPolicy &lhs, const QHstsPolicy &rhs)
+
+ Returns \c true if the two policies \a lhs and \a rhs do not have the same host
+ or expiration date, or do not agree on whether to include or exclude subdomains.
+*/
+
+/*!
+ \internal
*/
-bool operator==(const QHstsPolicy &lhs, const QHstsPolicy &rhs)
+bool QHstsPolicy::isEqual(const QHstsPolicy &other) const
{
- return *lhs.d == *rhs.d;
+ return *d == *other.d;
}
/*!