forked from qt-creator/qt-creator
VcsPlugin: Simplify return statements
Change-Id: Icdf580fb1ca6860a82f3594e4676fb450b55d174 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -121,14 +121,14 @@ QList<QStandardItem *> SubmitFileModel::addFile(const QString &fileName, const Q
|
||||
QString SubmitFileModel::state(int row) const
|
||||
{
|
||||
if (row < 0 || row >= rowCount())
|
||||
return QString();
|
||||
return {};
|
||||
return item(row)->text();
|
||||
}
|
||||
|
||||
QString SubmitFileModel::file(int row) const
|
||||
{
|
||||
if (row < 0 || row >= rowCount())
|
||||
return QString();
|
||||
return {};
|
||||
return item(row, FileColumn)->text();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user