forked from qt-creator/qt-creator
VcsBase: Move RunFlags into separate header
It is going to be used outside of VcsCommand, too. Use RunFlags enum as an argument to several functions instead of unsigned. Change-Id: I355c80a845a9b5982108fbde3412754392dce702 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ public:
|
||||
if (it != m_descriptions.constEnd())
|
||||
return *it;
|
||||
const QString desc = QString::fromUtf8(GitClient::instance()->synchronousShow(
|
||||
m_workingDirectory, revision, VcsCommand::NoOutput));
|
||||
m_workingDirectory, revision, RunFlags::NoOutput));
|
||||
m_descriptions[revision] = desc;
|
||||
return desc;
|
||||
}
|
||||
@@ -169,7 +169,7 @@ bool LogChangeWidget::populateLog(const FilePath &repository, const QString &com
|
||||
arguments << "--";
|
||||
QString output;
|
||||
if (!GitClient::instance()->synchronousLog(
|
||||
repository, arguments, &output, nullptr, VcsCommand::NoOutput)) {
|
||||
repository, arguments, &output, nullptr, RunFlags::NoOutput)) {
|
||||
return false;
|
||||
}
|
||||
const QStringList lines = output.split('\n');
|
||||
|
||||
Reference in New Issue
Block a user