diff --git a/containments/homescreen/applicationlistmodel.cpp b/containments/homescreen/applicationlistmodel.cpp index e43b0964..8dc7a0ae 100644 --- a/containments/homescreen/applicationlistmodel.cpp +++ b/containments/homescreen/applicationlistmodel.cpp @@ -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 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); } diff --git a/touchscreentest/main.cpp b/touchscreentest/main.cpp index 404092c5..c8effb46 100644 --- a/touchscreentest/main.cpp +++ b/touchscreentest/main.cpp @@ -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(); }