mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refactor: Fix clang-tidy modernize-return-braced-init-list
This commit is contained in:
@@ -237,7 +237,7 @@ namespace swift::gui::models
|
||||
|
||||
QStringList CAircraftModelListModel::getModelStrings(bool sort) const
|
||||
{
|
||||
if (this->isEmpty()) { return QStringList(); }
|
||||
if (this->isEmpty()) { return {}; }
|
||||
return this->container().getModelStringList(sort);
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ namespace swift::gui::models
|
||||
// highlight stashed first
|
||||
if (m_highlightStrings.contains(model.getModelString(), Qt::CaseInsensitive)) { return m_highlightColor; }
|
||||
|
||||
return QVariant();
|
||||
return {};
|
||||
}
|
||||
else if (role == Qt::ToolTipRole)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user