From 46213c82be82124be7fcdcb15bceecf2d174052d Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 8 Dec 2022 20:52:03 +0100 Subject: GitClient: Simplify vcsExec Get rid of editor arg. Reorder last two args (to conform to vcsExecWithHandler). Change-Id: Ia32757ac8b766640b76bef81f1b2e0f5efe4d48c Reviewed-by: Orgad Shaneh --- src/plugins/vcsbase/vcsbaseclient.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/plugins/vcsbase/vcsbaseclient.cpp') diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp index a622016d5d..91ada109e1 100644 --- a/src/plugins/vcsbase/vcsbaseclient.cpp +++ b/src/plugins/vcsbase/vcsbaseclient.cpp @@ -180,14 +180,12 @@ void VcsBaseClientImpl::vcsExecWithHandler(const FilePath &workingDirectory, void VcsBaseClientImpl::vcsExec(const FilePath &workingDirectory, const QStringList &arguments, - VcsBaseEditorWidget *editor, bool useOutputToWindow, - RunFlags additionalFlags) const + RunFlags additionalFlags, + bool useOutputToWindow) const { - VcsCommand *command = createCommand(workingDirectory, editor, + VcsCommand *command = createCommand(workingDirectory, nullptr, useOutputToWindow ? VcsWindowOutputBind : NoOutputBind); command->addFlags(additionalFlags); - if (editor) - command->setCodec(editor->codec()); command->addJob({vcsBinary(), arguments}, vcsTimeoutS()); command->start(); } -- cgit v1.2.1