aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/patchtool.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-05-20 11:57:21 +0200
committerhjk <hjk@qt.io>2021-05-21 15:07:34 +0000
commit77d7b24326cec920be8afa29b495cfcae52ee1c3 (patch)
tree7c58584c43373f103e9ed4e5b540886986e45564 /src/plugins/coreplugin/patchtool.cpp
parent2be80619308c88730addaae4e929b85dfc2952c0 (diff)
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>
Diffstat (limited to 'src/plugins/coreplugin/patchtool.cpp')
-rw-r--r--src/plugins/coreplugin/patchtool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/patchtool.cpp b/src/plugins/coreplugin/patchtool.cpp
index b34c73bed7e..345673e1172 100644
--- a/src/plugins/coreplugin/patchtool.cpp
+++ b/src/plugins/coreplugin/patchtool.cpp
@@ -84,7 +84,7 @@ static bool runPatchHelper(const QByteArray &input, const QString &workingDirect
if (!workingDirectory.isEmpty())
patchProcess.setWorkingDirectory(workingDirectory);
Environment env = Environment::systemEnvironment();
- Environment::setupEnglishOutput(&env);
+ env.setupEnglishOutput();
patchProcess.setEnvironment(env);
QStringList args;
// Add argument 'apply' when git is used as patch command since git 2.5/Windows