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

GIT_SILENT Add trailing comma to enums and initializer lists

This will lead to cleaner diffs and better clang-format results
parent 41fc8e57
......@@ -23,7 +23,7 @@ public:
None,
InProgress,
Interrupted,
Complete
Complete,
};
void start() override;
......
......@@ -40,7 +40,7 @@ MPrisPlugin::MPrisPlugin(QObject *parent)
m_possibleLoopStatus = {
{QStringLiteral("None"), false},
{QStringLiteral("Track"), true},
{QStringLiteral("Playlist"), true}
{QStringLiteral("Playlist"), true},
};
}
......@@ -88,7 +88,7 @@ void MPrisPlugin::sendPropertyChanges()
signal.setArguments({
interfaceName,
changes,
QStringList() // invalidated
QStringList(), // invalidated
});
QDBusConnection::sessionBus().send(signal);
......
......@@ -32,7 +32,7 @@ const QMap<Settings::Environment, QString> Settings::environmentNames = {
{Settings::Environment::Opera, QStringLiteral("opera")},
{Settings::Environment::Vivaldi, QStringLiteral("vivaldi")},
{Settings::Environment::Brave, QStringLiteral("brave")},
{Settings::Environment::Edge, QStringLiteral("edge")}
{Settings::Environment::Edge, QStringLiteral("edge")},
};
const QMap<Settings::Environment, EnvironmentDescription> Settings::environmentDescriptions = {
......@@ -42,7 +42,7 @@ const QMap<Settings::Environment, EnvironmentDescription> Settings::environmentD
QStringLiteral("google-chrome"),
QStringLiteral("google.com"),
QStringLiteral("Google"),
QStringLiteral("google-chrome")
QStringLiteral("google-chrome"),
} },
{Settings::Environment::Chromium, {
QStringLiteral("chromium-browser"),
......@@ -50,7 +50,7 @@ const QMap<Settings::Environment, EnvironmentDescription> Settings::environmentD
QStringLiteral("chromium-browser"),
QStringLiteral("google.com"),
QStringLiteral("Google"),
QStringLiteral("chromium-browser")
QStringLiteral("chromium-browser"),
} },
{Settings::Environment::Firefox, {
QStringLiteral("firefox"),
......@@ -58,7 +58,7 @@ const QMap<Settings::Environment, EnvironmentDescription> Settings::environmentD
QStringLiteral("firefox"),
QStringLiteral("mozilla.org"),
QStringLiteral("Mozilla"),
QStringLiteral("firefox")
QStringLiteral("firefox"),
} },
{Settings::Environment::Opera, {
QStringLiteral("opera"),
......@@ -66,7 +66,7 @@ const QMap<Settings::Environment, EnvironmentDescription> Settings::environmentD
QStringLiteral("opera"),
QStringLiteral("opera.com"),
QStringLiteral("Opera"),
QStringLiteral("opera")
QStringLiteral("opera"),
} },
{Settings::Environment::Vivaldi, {
QStringLiteral("vivaldi"),
......@@ -75,7 +75,7 @@ const QMap<Settings::Environment, EnvironmentDescription> Settings::environmentD
QStringLiteral("vivaldi-stable"),
QStringLiteral("vivaldi.com"),
QStringLiteral("Vivaldi"),
QStringLiteral("vivaldi")
QStringLiteral("vivaldi"),
} },
{Settings::Environment::Brave, {
QStringLiteral("Brave"),
......@@ -83,7 +83,7 @@ const QMap<Settings::Environment, EnvironmentDescription> Settings::environmentD
QStringLiteral("brave-browser"),
QStringLiteral("brave.com"),
QStringLiteral("Brave"),
QStringLiteral("brave")
QStringLiteral("brave"),
} },
{Settings::Environment::Edge, {
QStringLiteral("Edge"),
......@@ -91,8 +91,8 @@ const QMap<Settings::Environment, EnvironmentDescription> Settings::environmentD
QStringLiteral("microsoft-edge"),
QStringLiteral("microsoft.com"),
QStringLiteral("Microsoft"),
QStringLiteral("microsoft-edge")
} }
QStringLiteral("microsoft-edge"),
} },
};
Settings::Settings()
......
......@@ -45,7 +45,7 @@ public:
Opera,
Vivaldi,
Brave,
Edge
Edge,
};
Q_ENUM(Environment)
......
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