tst_QLocale: clean out the last use of foreach
Change-Id: I0a4810dbae2137764ea1d14d515e9f06f7f2129d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
ffaa1281d4
commit
8b5fb76d34
@ -201,7 +201,8 @@ void tst_QLocale::initTestCase()
|
|||||||
|
|
||||||
// Get an environment free of any locale-related variables
|
// Get an environment free of any locale-related variables
|
||||||
cleanEnv.clear();
|
cleanEnv.clear();
|
||||||
foreach (QString const& entry, QProcess::systemEnvironment()) {
|
const QStringList sysenv = QProcess::systemEnvironment();
|
||||||
|
for (const QString &entry : sysenv) {
|
||||||
if (entry.startsWith("LANG=") || entry.startsWith("LC_") || entry.startsWith("LANGUAGE="))
|
if (entry.startsWith("LANG=") || entry.startsWith("LC_") || entry.startsWith("LANGUAGE="))
|
||||||
continue;
|
continue;
|
||||||
cleanEnv << entry;
|
cleanEnv << entry;
|
||||||
|
Loading…
Reference in New Issue
Block a user