Minor cleanup
Change-Id: I77c631a73f1029433dfdd91681cc1f657a5c7cac Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
6236074318
commit
1acc4448c2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user