QtNetwork: fix a few more char -> QChar conversions

They were masked by all QChar ctors being made explicit, except the char16_t one,
which was left as the only viable choice.

Change-Id: I7288e6ae32b2771859a61c0b99783209d47616bc
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
bb10
Marc Mutz 2020-04-27 11:18:08 +02:00
parent 7a8b277d5b
commit 8c43aa777e
1 changed files with 2 additions and 2 deletions

View File

@ -154,12 +154,12 @@ static inline bool isParentPath(const QString &path, const QString &reference)
return true;
//The cookie-path is a prefix of the request-path, and the last
//character of the cookie-path is %x2F ("/").
if (reference.endsWith('/'))
if (reference.endsWith(u'/'))
return true;
//The cookie-path is a prefix of the request-path, and the first
//character of the request-path that is not included in the cookie-
//path is a %x2F ("/") character.
if (path.at(reference.length()) == '/')
if (path.at(reference.length()) == u'/')
return true;
}
return false;