diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2020-04-21 14:27:02 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2020-04-26 11:46:16 +0000 |
commit | 19bfcdaa43f6ac8841942cb545811eab409f1713 (patch) | |
tree | 87bbcca77122c1d90a5b5024a21e14ca0ce6b3b1 /src/network/access/qnetworkcookiejar.cpp | |
parent | bc205d81e7c0cc33ee1f5b72c3745c958f3f2aa7 (diff) |
Port qIsEffectiveTLD() to QStringView
Also add a piece of documentation that the input needs to be
in lower-case (the implementation uses qt_hash to index into
a table of TLDs, and qt_hash is case-sensitive).
Change-Id: I911c0e2bb0826fc1b0fc01ed60bdfd6e4c0298f2
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/network/access/qnetworkcookiejar.cpp')
-rw-r--r-- | src/network/access/qnetworkcookiejar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkcookiejar.cpp b/src/network/access/qnetworkcookiejar.cpp index af5b126953..0856dd2252 100644 --- a/src/network/access/qnetworkcookiejar.cpp +++ b/src/network/access/qnetworkcookiejar.cpp @@ -47,7 +47,7 @@ #include "private/qtldurl_p.h" #else QT_BEGIN_NAMESPACE -static bool qIsEffectiveTLD(QString domain) +static bool qIsEffectiveTLD(QStringView domain) { // provide minimal checking by not accepting cookies on real TLDs return !domain.contains(QLatin1Char('.')); |