mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refactor: Fix clang-tidy modernize-return-braced-init-list
This commit is contained in:
@@ -79,7 +79,7 @@ namespace swift::gui::models
|
||||
QVariant CListModelBase<T, UseCompare>::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
// check / init
|
||||
if (!this->isValidIndex(index)) { return QVariant(); }
|
||||
if (!this->isValidIndex(index)) { return {}; }
|
||||
|
||||
if (role == Qt::BackgroundRole) { return CListModelBaseNonTemplate::data(index, role); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user