summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/text/qlocale/tst_qlocale.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/text/qlocale/tst_qlocale.cpp')
-rw-r--r--tests/auto/corelib/text/qlocale/tst_qlocale.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/corelib/text/qlocale/tst_qlocale.cpp b/tests/auto/corelib/text/qlocale/tst_qlocale.cpp
index 1a882733a3..6ed06ca237 100644
--- a/tests/auto/corelib/text/qlocale/tst_qlocale.cpp
+++ b/tests/auto/corelib/text/qlocale/tst_qlocale.cpp
@@ -3010,7 +3010,8 @@ void tst_QLocale::systemLocale()
QFETCH(QLocale::Language, language);
{
- MySystemLocale sLocale(name);
+ QLocale locale(name);
+ MySystemLocale sLocale(locale);
QCOMPARE(QLocale().language(), language);
QCOMPARE(QLocale::system().language(), language);
}