Utils: Make Environment::setEnglishOutput a proper member function

The previous indirection was useful as long as they were overloads
for QProcessEnvironment and QStringList, but these are gone now.

Change-Id: I5066bd2e72fd06948a5cc7bbac6dda9006db96ed
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-05-20 11:57:21 +02:00
parent 2be8061930
commit 77d7b24326
11 changed files with 14 additions and 14 deletions

View File

@@ -153,7 +153,7 @@ void AbstractProcessStep::setEnvironmentModifier(const std::function<void (Envir
void AbstractProcessStep::setUseEnglishOutput()
{
d->m_environmentModifier = [](Environment &env) { Environment::setupEnglishOutput(&env); };
d->m_environmentModifier = [](Environment &env) { env.setupEnglishOutput(); };
}
void AbstractProcessStep::setCommandLineProvider(const std::function<CommandLine()> &provider)