diff options
-rw-r--r-- | src/corelib/io/qdataurl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qdataurl.cpp b/src/corelib/io/qdataurl.cpp index 66972b7876..92c6f54122 100644 --- a/src/corelib/io/qdataurl.cpp +++ b/src/corelib/io/qdataurl.cpp @@ -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) == '=') |