Fix warning about copy during range iteration
Pick-to: 6.0 Change-Id: I6c916d79a5e86502a1fdfd5f2b851f4a4396149a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>bb10
parent
bb53b35b54
commit
39cd65589d
|
|
@ -503,7 +503,7 @@ static QStringView findTag(QStringView name)
|
|||
static bool validTag(QStringView tag)
|
||||
{
|
||||
// Returns false if any character in tag is not an ASCII letter or digit
|
||||
for (const QChar uc : tag) {
|
||||
for (QChar uc : tag) {
|
||||
const char16_t ch = uc.unicode();
|
||||
if (!((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9')))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue