refactor: Fix clang-tidy modernize-return-braced-init-list

This commit is contained in:
Lars Toenning
2025-10-10 23:43:20 +02:00
parent 8f946b77d5
commit e09413614a
195 changed files with 724 additions and 690 deletions

View File

@@ -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)
{