summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qtldurl.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-07-26 22:18:40 +0300
committerMarc Mutz <marc.mutz@kdab.com>2019-07-29 11:17:28 +0300
commitadab531771a1ddce7df6652449b7977f340ebfc7 (patch)
treee4373c2c618af1c0bd54178cf502f6ca2fd1be5c /src/corelib/io/qtldurl.cpp
parenteb39185acba01250240c289b1b3e64892f615357 (diff)
Port from QStringViewLiteral to u""
Now that all our supported compilers know char16_t, we no longer need QStringViewLiteral, whose only purpose in life was to turn u"" into L"" for MSVC < 2015. Change-Id: I25a094fe7992d9d5dbeb4a524d9e99e043dcb8ce Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/io/qtldurl.cpp')
-rw-r--r--src/corelib/io/qtldurl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/io/qtldurl.cpp b/src/corelib/io/qtldurl.cpp
index a934d19fa2..912609ec91 100644
--- a/src/corelib/io/qtldurl.cpp
+++ b/src/corelib/io/qtldurl.cpp
@@ -59,9 +59,9 @@ enum TLDMatchType {
static bool containsTLDEntry(QStringView entry, TLDMatchType match)
{
const QStringView matchSymbols[] = {
- QStringViewLiteral(""),
- QStringViewLiteral("*"),
- QStringViewLiteral("!"),
+ u"",
+ u"*",
+ u"!",
};
const auto symbol = matchSymbols[match];
int index = qt_hash(entry, qt_hash(symbol)) % tldCount;