Fix int/qsizetype mismatches in data url support
More int/qsizetype mismatches. Task-number: QTBUG-103525 Pick-to: 6.4 6.3 6.2 Change-Id: I30723b6f59fa62dd7096110458305da7573ad345 Reviewed-by: Mate Barany <mate.barany@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
35cbf52f0c
commit
f8c23116bb
@ -29,7 +29,7 @@ Q_CORE_EXPORT bool qDecodeDataUrl(const QUrl &uri, QString &mimeType, QByteArray
|
||||
QByteArray data = QByteArray::fromPercentEncoding(uri.url(QUrl::FullyEncoded | QUrl::RemoveScheme).toLatin1());
|
||||
|
||||
// parse it:
|
||||
int pos = data.indexOf(',');
|
||||
const qsizetype pos = data.indexOf(',');
|
||||
if (pos != -1) {
|
||||
payload = data.mid(pos + 1);
|
||||
data.truncate(pos);
|
||||
@ -42,7 +42,7 @@ Q_CORE_EXPORT bool qDecodeDataUrl(const QUrl &uri, QString &mimeType, QByteArray
|
||||
}
|
||||
|
||||
if (QLatin1StringView{data}.startsWith("charset"_L1, Qt::CaseInsensitive)) {
|
||||
int i = 7; // strlen("charset")
|
||||
qsizetype i = 7; // strlen("charset")
|
||||
while (data.at(i) == ' ')
|
||||
++i;
|
||||
if (data.at(i) == '=')
|
||||
|
Loading…
Reference in New Issue
Block a user