forked from qt-creator/qt-creator
VcsBaseClient: Make some functions const
Change-Id: Ia82f4ca25b59adfbc96c03c1aaed873a572e4785 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
7078a1ada7
commit
94f0839f3f
@@ -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)
|
||||
|
Reference in New Issue
Block a user