summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qlocale.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-11-23 19:47:20 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-27 12:26:54 +0000
commit39cd65589d8ce70191b5dbc54941fc28060b40e1 (patch)
tree92998eec13be656dce43a8a977f0c603bfdda3e5 /src/corelib/text/qlocale.cpp
parentbb53b35b5419a4fa4b0c681c82ff1dfcc2761be7 (diff)
Fix warning about copy during range iteration
Pick-to: 6.0 Change-Id: I6c916d79a5e86502a1fdfd5f2b851f4a4396149a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/text/qlocale.cpp')
-rw-r--r--src/corelib/text/qlocale.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp
index 02f020b032..ab542f638a 100644
--- a/src/corelib/text/qlocale.cpp
+++ b/src/corelib/text/qlocale.cpp
@@ -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;