GitPlugin: Simplify return statements

Change-Id: If09c93acade749326b95bb1c6068b2d43a4d8551
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2023-08-02 11:37:20 +02:00
parent 8d8e60436d
commit 224e4eeb59
12 changed files with 40 additions and 43 deletions

View File

@@ -95,7 +95,7 @@ QString LogChangeWidget::commit() const
{
if (const QStandardItem *sha1Item = currentItem(Sha1Column))
return sha1Item->text();
return QString();
return {};
}
int LogChangeWidget::commitIndex() const
@@ -113,7 +113,7 @@ QString LogChangeWidget::earliestCommit() const
if (const QStandardItem *item = m_model->item(rows - 1, Sha1Column))
return item->text();
}
return QString();
return {};
}
void LogChangeWidget::setItemDelegate(QAbstractItemDelegate *delegate)
@@ -269,7 +269,7 @@ int LogChangeDialog::commitIndex() const
QString LogChangeDialog::resetFlag() const
{
if (!m_resetTypeComboBox)
return QString();
return {};
return m_resetTypeComboBox->itemData(m_resetTypeComboBox->currentIndex()).toString();
}