summaryrefslogtreecommitdiffstats
path: root/tests/manual/qlocale/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/qlocale/window.cpp')
-rw-r--r--tests/manual/qlocale/window.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/manual/qlocale/window.cpp b/tests/manual/qlocale/window.cpp
index 89e3ec6..38bbbe4 100644
--- a/tests/manual/qlocale/window.cpp
+++ b/tests/manual/qlocale/window.cpp
@@ -46,9 +46,8 @@ Window::Window()
localeCombo->addItem("System", QLocale::system());
- QStringList locales = QLocale::matchingLocales(QLocale::AnyLanguage, QLocale::AnyScript, QLocale::AnyCountry);
- foreach (const QString &name, locales) {
- QLocale locale(name);
+ QList<QLocale> locales = QLocale::matchingLocales(QLocale::AnyLanguage, QLocale::AnyScript, QLocale::AnyCountry);
+ foreach (const QLocale &locale, locales) {
QString label = QLocale::languageToString(locale.language());
label += QLatin1Char('/');
if (locale.script() != QLocale::AnyScript) {