forked from qt-creator/qt-creator
Utils: Don't expose Utils::defaultExitCodeInterpreter
Instead, make its behavior implicit if none is given. Change-Id: I3c1a054751a0afe22d0f40a2fed6dd00b5aef205 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -518,7 +518,7 @@ QString VcsBaseClient::vcsCommandString(VcsCommandTag cmd) const
|
||||
ExitCodeInterpreter VcsBaseClient::exitCodeInterpreter(VcsCommandTag cmd) const
|
||||
{
|
||||
Q_UNUSED(cmd)
|
||||
return Utils::defaultExitCodeInterpreter;
|
||||
return {};
|
||||
}
|
||||
|
||||
void VcsBaseClient::setDiffConfigCreator(ConfigCreator creator)
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QFileInfo;
|
||||
class QProcessEnvironment;
|
||||
class QToolBar;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
@@ -82,7 +81,7 @@ public:
|
||||
|
||||
void enqueueJob(VcsCommand *cmd, const QStringList &args,
|
||||
const QString &workingDirectory = QString(),
|
||||
const Utils::ExitCodeInterpreter &interpreter = Utils::defaultExitCodeInterpreter) const;
|
||||
const Utils::ExitCodeInterpreter &interpreter = {}) const;
|
||||
|
||||
virtual Utils::Environment processEnvironment() const;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
Utils::SynchronousProcessResponse runCommand(const Utils::CommandLine &command,
|
||||
int timeoutS,
|
||||
const QString &workDirectory = QString(),
|
||||
const Utils::ExitCodeInterpreter &interpreter = Utils::defaultExitCodeInterpreter) override;
|
||||
const Utils::ExitCodeInterpreter &interpreter = {}) override;
|
||||
|
||||
private:
|
||||
void emitRepositoryChanged(const QString &workingDirectory);
|
||||
|
||||
Reference in New Issue
Block a user