Fix warning about copy during range iteration
Change-Id: I6c916d79a5e86502a1fdfd5f2b851f4a4396149a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 39cd65589d8ce70191b5dbc54941fc28060b40e1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
509d191b49
commit
5938396011
@ -503,7 +503,7 @@ static QStringView findTag(QStringView name)
|
|||||||
static bool validTag(QStringView tag)
|
static bool validTag(QStringView tag)
|
||||||
{
|
{
|
||||||
// Returns false if any character in tag is not an ASCII letter or digit
|
// 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();
|
const char16_t ch = uc.unicode();
|
||||||
if (!((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9')))
|
if (!((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9')))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user