summaryrefslogtreecommitdiffstats
path: root/src/corelib/text
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-04-05 14:54:04 +0200
committerLars Knoll <lars.knoll@qt.io>2020-04-15 19:55:06 +0200
commitbc726ed5d96161b70a22b9a11e0943acca219cfc (patch)
tree3899fdc07cf5d21baa8ab126aa2aa80ce2f61d3f /src/corelib/text
parente80544ebca7bc3083df460607931bb4ea55d6a6a (diff)
Compile fixes for clang10
Fix some warnings that are flagged as errors on clang10. Change-Id: I906634c8b2bd94db42d74a7f3d10efb086e373cc Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/text')
-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 4af039298f..258e90a06c 100644
--- a/src/corelib/text/qlocale.cpp
+++ b/src/corelib/text/qlocale.cpp
@@ -4466,7 +4466,7 @@ QStringList QLocale::uiLanguages() const
if (!res.isNull()) {
uiLanguages = res.toStringList();
// ... but we need to include likely-adjusted forms of each of those, too:
- for (const auto entry : qAsConst(uiLanguages))
+ for (const auto &entry : qAsConst(uiLanguages))
locales.append(QLocale(entry));
}
if (locales.isEmpty())