mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
clang-tidy: Force braces around statements
This commit is contained in:
parent
854742efcc
commit
a5df3ebdcb
2 changed files with 6 additions and 3 deletions
|
|
@ -158,8 +158,9 @@ void ApplicationListModel::loadApplications()
|
|||
m_applicationList.clear();
|
||||
|
||||
KServiceGroup::Ptr group = KServiceGroup::root();
|
||||
if (!group || !group->isValid())
|
||||
if (!group || !group->isValid()) {
|
||||
return;
|
||||
}
|
||||
KServiceGroup::List subGroupList = group->entries(true);
|
||||
|
||||
QMap<int, ApplicationData> orderedList;
|
||||
|
|
@ -278,8 +279,9 @@ QVariant ApplicationListModel::data(const QModelIndex &index, int role) const
|
|||
|
||||
Qt::ItemFlags ApplicationListModel::flags(const QModelIndex &index) const
|
||||
{
|
||||
if (!index.isValid())
|
||||
if (!index.isValid()) {
|
||||
return {};
|
||||
}
|
||||
return Qt::ItemIsDragEnabled | QAbstractListModel::flags(index);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
QQmlApplicationEngine engine;
|
||||
engine.load(QUrl(QLatin1String("qrc:/main.qml")));
|
||||
if (engine.rootObjects().isEmpty())
|
||||
if (engine.rootObjects().isEmpty()) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue