Fix warning about copy during range iteration

Pick-to: 6.0
Change-Id: I6c916d79a5e86502a1fdfd5f2b851f4a4396149a
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Tor Arne Vestbø 2020-11-23 19:47:20 +01:00 committed by Volker Hilsheimer
parent bb53b35b54
commit 39cd65589d
1 changed files with 1 additions and 1 deletions

View File

@ -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;