Verified Commit f6c0feff authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

GIT_SILENT Add trailing comma to initializer lists

This will result in cleaner diffs when a new value is added
and clang-format will not indent them with the opening
brace of the initializer list which makes is slightly easier to read.
parent f5fc5e9f
......@@ -257,7 +257,7 @@ void RunnerModel::matchesChanged(const QList<Plasma::QueryMatch> &matches)
QStringLiteral("shell"),
QStringLiteral("bookmarks"),
QStringLiteral("recentdocuments"),
QStringLiteral("locations")};
QStringLiteral("locations"),};
if (m_runners.isEmpty()) {
const auto baloo = matchesForRunner.take(QStringLiteral("baloosearch"));
const auto appstream = matchesForRunner.take(QStringLiteral("krunner_appstream"));
......
......@@ -27,7 +27,7 @@ static const QList<QString> s_categoryOrder = {QStringLiteral("UnknownCategory")
QStringLiteral("ApplicationStatus"),
QStringLiteral("Communications"),
QStringLiteral("SystemServices"),
QStringLiteral("Hardware")};
QStringLiteral("Hardware"),};
SortedSystemTrayModel::SortedSystemTrayModel(SortingType sorting, QObject *parent)
: QSortFilterProxyModel(parent)
......
......@@ -419,7 +419,7 @@ bool SolidDeviceEngine::populateDeviceData(const QString &name)
Solid::DeviceInterface::StorageAccess,
Solid::DeviceInterface::Block,
Solid::DeviceInterface::Battery,
Solid::DeviceInterface::Processor};
Solid::DeviceInterface::Processor,};
for (int i = 0; i < 11; ++i) {
const Solid::DeviceInterface *interface = device.asDeviceInterface(typeOrder[i]);
......
......@@ -98,7 +98,7 @@ static const struct {
{QFontDatabase::Myanmar, 0x1000},
{QFontDatabase::Ogham, 0x1681},
{QFontDatabase::Runic, 0x16a0},
{QFontDatabase::Any, 0x0}};
{QFontDatabase::Any, 0x0},};
qulonglong WritingSystems::get(FcPattern *pat) const
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment