Verified Commit 46996c77 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 0024b640
......@@ -71,11 +71,11 @@ const char *const s_defaultFileExcludeFilters[] = {
"*.elc", // Emacs Lisp
// end of list
nullptr};
nullptr,};
const int s_defaultFileExcludeFiltersVersion = 2;
const char *const s_defaultFolderExcludeFilters[] = { //
const char *const s_defaultFolderExcludeFilters[] = {
"po",
// VCS
......@@ -100,11 +100,11 @@ const char *const s_defaultFolderExcludeFilters[] = { //
"lost+found",
// end of list
nullptr};
nullptr,};
const int s_defaultFolderExcludeFiltersVersion = 1;
const char *const s_sourceCodeMimeTypes[] = { //
const char *const s_sourceCodeMimeTypes[] = {
"text/css",
"text/x-c++src",
"text/x-c++hdr",
......@@ -133,7 +133,7 @@ const char *const s_sourceCodeMimeTypes[] = { //
"application/x-tex",
// end of list
nullptr};
nullptr,};
const int s_sourceCodeMimeTypesVersion = 1;
}
......
......@@ -128,7 +128,7 @@ Component GlobalAccelModel::loadComponent(const QList<KGlobalShortcutInfo> &info
static const QHash<QString, QString> hardCodedIcons = {{"ActivityManager", "preferences-desktop-activities"},
{"KDE Keyboard Layout Switcher", "input-keyboard"},
{"org_kde_powerdevil", "preferences-system-power-management"}};
{"org_kde_powerdevil", "preferences-system-power-management"},};
if (service && !service->icon().isEmpty()) {
icon = service->icon();
......
......@@ -59,7 +59,7 @@ int main(int argc, char *argv[])
const QStringList binaryPackages = {QStringLiteral("application/vnd.debian.binary-package"),
QStringLiteral("application/x-rpm"),
QStringLiteral("application/x-xz"),
QStringLiteral("application/zstd")};
QStringLiteral("application/zstd"),};
bool install;
if (cmd == QLatin1String("install")) {
install = true;
......
......@@ -124,7 +124,7 @@ const struct Parameter synapticsProperties[] = {{"LeftEdge", PT_INT, 0, 10000, S
{"MiddleButtonAreaRight", PT_INT, INT_MIN, INT_MAX, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 5},
{"MiddleButtonAreaTop", PT_INT, INT_MIN, INT_MAX, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 6},
{"MiddleButtonAreaBottom", PT_INT, INT_MIN, INT_MAX, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 7},
{NULL, PT_INT, 0, 0, nullptr, 0, 0}};
{NULL, PT_INT, 0, 0, nullptr, 0, 0},};
SynapticsTouchpad::SynapticsTouchpad(Display *display, int deviceId)
: XlibTouchpad(display, deviceId)
......
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