summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/vcsbaseclient.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-12-08 20:52:03 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-12-09 10:29:36 +0000
commit46213c82be82124be7fcdcb15bceecf2d174052d (patch)
treec9e2daee3966f0c348e43d2150013635f3ac97e7 /src/plugins/vcsbase/vcsbaseclient.cpp
parent0cdfac0cb5ee692576276393e4999d91a6689e25 (diff)
downloadqt-creator-46213c82be82124be7fcdcb15bceecf2d174052d.tar.gz
GitClient: Simplify vcsExec
Get rid of editor arg. Reorder last two args (to conform to vcsExecWithHandler). Change-Id: Ia32757ac8b766640b76bef81f1b2e0f5efe4d48c Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseclient.cpp')
-rw-r--r--src/plugins/vcsbase/vcsbaseclient.cpp8
1 files changed, 3 insertions, 5 deletions
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();
}