aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vcsbase/vcsbaseclient.cpp
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2016-04-25 14:40:42 +0200
committerEike Ziller <[email protected]>2016-04-27 08:48:32 +0000
commit967177d3d8d345c9fea2db87885f486536b21c05 (patch)
treebab8d04f87e3b336b4f9a633f833e741347696e5 /src/plugins/vcsbase/vcsbaseclient.cpp
parentcb08a44e7e763abfb56bdc009b9ad5e0fad83a82 (diff)
SynchronousProcess: Change exit code interpreter to function object
Change-Id: Ic48d4f5810f171c070f0980581fb6e45f6fe6b4a Reviewed-by: Orgad Shaneh <[email protected]> Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseclient.cpp')
-rw-r--r--src/plugins/vcsbase/vcsbaseclient.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp
index 970225765f7..4e62b24e81c 100644
--- a/src/plugins/vcsbase/vcsbaseclient.cpp
+++ b/src/plugins/vcsbase/vcsbaseclient.cpp
@@ -135,7 +135,7 @@ VcsCommand *VcsBaseClientImpl::createCommand(const QString &workingDirectory,
void VcsBaseClientImpl::enqueueJob(VcsCommand *cmd, const QStringList &args,
const QString &workingDirectory,
- Utils::ExitCodeInterpreter *interpreter)
+ const Utils::ExitCodeInterpreter &interpreter)
{
cmd->addJob(vcsBinary(), args, vcsTimeoutS(), workingDirectory, interpreter);
cmd->execute();
@@ -436,7 +436,7 @@ void VcsBaseClient::diff(const QString &workingDir, const QStringList &files,
QTextCodec *codec = source.isEmpty() ? static_cast<QTextCodec *>(0) : VcsBaseEditor::getCodec(source);
VcsCommand *command = createCommand(workingDir, editor);
command->setCodec(codec);
- enqueueJob(command, args, workingDir, exitCodeInterpreter(DiffCommand, command));
+ enqueueJob(command, args, workingDir, exitCodeInterpreter(DiffCommand));
}
void VcsBaseClient::log(const QString &workingDir, const QStringList &files,
@@ -537,11 +537,10 @@ QString VcsBaseClient::vcsCommandString(VcsCommandTag cmd) const
return QString();
}
-Utils::ExitCodeInterpreter *VcsBaseClient::exitCodeInterpreter(VcsCommandTag cmd, QObject *parent) const
+Utils::ExitCodeInterpreter VcsBaseClient::exitCodeInterpreter(VcsCommandTag cmd) const
{
Q_UNUSED(cmd)
- Q_UNUSED(parent)
- return 0;
+ return Utils::defaultExitCodeInterpreter;
}
void VcsBaseClient::setDiffParameterWidgetCreator(ParameterWidgetCreator creator)