Commit 94f0839f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

VcsBaseClient: Make some functions const



Change-Id: Ia82f4ca25b59adfbc96c03c1aaed873a572e4785
Reviewed-by: default avatarAndré Hartmann <aha_1980@gmx.de>
parent 7078a1ad
......@@ -135,7 +135,7 @@ VcsCommand *VcsBaseClientImpl::createCommand(const QString &workingDirectory,
void VcsBaseClientImpl::enqueueJob(VcsCommand *cmd, const QStringList &args,
const QString &workingDirectory,
const Utils::ExitCodeInterpreter &interpreter)
const Utils::ExitCodeInterpreter &interpreter) const
{
cmd->addJob(vcsBinary(), args, vcsTimeoutS(), workingDirectory, interpreter);
cmd->execute();
......@@ -198,7 +198,7 @@ bool VcsBaseClientImpl::vcsFullySynchronousExec(const QString &workingDir, const
VcsCommand *VcsBaseClientImpl::vcsExec(const QString &workingDirectory, const QStringList &arguments,
VcsBaseEditorWidget *editor, bool useOutputToWindow,
unsigned additionalFlags, const QVariant &cookie)
unsigned additionalFlags, const QVariant &cookie) const
{
VcsCommand *command = createCommand(workingDirectory, editor,
useOutputToWindow ? VcsWindowOutputBind : NoOutputBind);
......
......@@ -82,7 +82,7 @@ public:
void enqueueJob(VcsCommand *cmd, const QStringList &args,
const QString &workingDirectory = QString(),
const Utils::ExitCodeInterpreter &interpreter = Utils::defaultExitCodeInterpreter);
const Utils::ExitCodeInterpreter &interpreter = Utils::defaultExitCodeInterpreter) const;
virtual QProcessEnvironment processEnvironment() const;
......@@ -109,7 +109,7 @@ protected:
// Simple helper to execute a single command using createCommand and enqueueJob.
VcsCommand *vcsExec(const QString &workingDirectory, const QStringList &arguments,
VcsBaseEditorWidget *editor = 0, bool useOutputToWindow = false,
unsigned additionalFlags = 0, const QVariant &cookie = QVariant());
unsigned additionalFlags = 0, const QVariant &cookie = QVariant()) const;
// Synchronous VCS execution using Utils::SynchronousProcess, with
// log windows updating (using VcsBasePlugin::runVcs with flags)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment