Minor cleanup

Change-Id: I77c631a73f1029433dfdd91681cc1f657a5c7cac
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Lars Knoll 2019-09-23 15:16:19 +02:00
parent 6236074318
commit 1acc4448c2

View File

@ -979,7 +979,7 @@ inline bool QUrlPrivate::setScheme(const QString &value, int len, bool doSetErro
// validate it:
int needsLowercasing = -1;
const ushort *p = reinterpret_cast<const ushort *>(value.constData());
const ushort *p = value.utf16();
for (int i = 0; i < len; ++i) {
if (p[i] >= 'a' && p[i] <= 'z')
continue;