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.
wilder-5.22
Alexander Lohnau 5 years ago
parent f5fc5e9f65
commit f6c0feff49
No known key found for this signature in database
GPG Key ID: 6C45BA731AA2ED36
  1. 2
      applets/kicker/plugin/runnermodel.cpp
  2. 2
      applets/systemtray/sortedsystemtraymodel.cpp
  3. 2
      dataengines/soliddevice/soliddeviceengine.cpp
  4. 2
      kcms/kfontinst/lib/WritingSystems.cpp

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

Loading…
Cancel
Save