summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdataurl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/io/qdataurl.cpp')
-rw-r--r--src/corelib/io/qdataurl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/io/qdataurl.cpp b/src/corelib/io/qdataurl.cpp
index 7ba3311f0df..bb29af54acd 100644
--- a/src/corelib/io/qdataurl.cpp
+++ b/src/corelib/io/qdataurl.cpp
@@ -43,17 +43,17 @@ Q_CORE_EXPORT bool qDecodeDataUrl(const QUrl &uri, QString &mimeType, QByteArray
data.chop(7);
}
- QByteArrayView textPlain;
+ QLatin1StringView textPlain;
if (QLatin1StringView{data}.startsWith("charset"_L1, Qt::CaseInsensitive)) {
qsizetype i = 7; // strlen("charset")
while (data.at(i) == ' ')
++i;
if (data.at(i) == '=')
- textPlain = "text/plain;";
+ textPlain = "text/plain;"_L1;
}
if (!data.isEmpty())
- mimeType = QString::fromLatin1(textPlain + data.trimmed());
+ mimeType = textPlain + QLatin1StringView(data.trimmed());
}
return true;