Mpris2: Rename function parameter variable

This commit is contained in:
Jonas Kvinge 2022-12-04 21:42:36 +01:00
parent 2ed1a5c06a
commit 754cfc3bfd
2 changed files with 6 additions and 6 deletions

View File

@ -190,15 +190,15 @@ void Mpris2::RepeatModeChanged() {
}
void Mpris2::EmitNotification(const QString &name, const QVariant &val) {
EmitNotification(name, val, "org.mpris.MediaPlayer2.Player");
void Mpris2::EmitNotification(const QString &name, const QVariant &value) {
EmitNotification(name, value, "org.mpris.MediaPlayer2.Player");
}
void Mpris2::EmitNotification(const QString &name, const QVariant &val, const QString &mprisEntity) {
void Mpris2::EmitNotification(const QString &name, const QVariant &value, const QString &mprisEntity) {
QDBusMessage msg = QDBusMessage::createSignal(kMprisObjectPath, kFreedesktopPath, "PropertiesChanged");
QVariantMap map;
map.insert(name, val);
map.insert(name, value);
QVariantList args = QVariantList() << mprisEntity << map << QStringList();
msg.setArguments(args);
QDBusConnection::sessionBus().send(msg);

View File

@ -215,8 +215,8 @@ class Mpris2 : public QObject {
private:
void EmitNotification(const QString &name);
void EmitNotification(const QString &name, const QVariant &val);
void EmitNotification(const QString &name, const QVariant &val, const QString &mprisEntity);
void EmitNotification(const QString &name, const QVariant &value);
void EmitNotification(const QString &name, const QVariant &value, const QString &mprisEntity);
QString PlaybackStatus(Engine::State state) const;