diff options
author | Robert Tari <robert@tari.in> | 2021-12-09 12:00:39 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-12-09 12:03:07 +0100 |
commit | f696e54c767f4971f81237f8e4234289aa3c1b01 (patch) | |
tree | 6e48a65257a071273e7f30b4098aa807e04bc13f /tests/integration/utils/dbus-pulse-volume.cpp | |
parent | 09dde5270d94be7ec55a4ede3ca4007be097b343 (diff) | |
download | ayatana-indicator-sound-f696e54c767f4971f81237f8e4234289aa3c1b01.tar.gz ayatana-indicator-sound-f696e54c767f4971f81237f8e4234289aa3c1b01.tar.bz2 ayatana-indicator-sound-f696e54c767f4971f81237f8e4234289aa3c1b01.zip |
Fix cppcheck warnings
Diffstat (limited to 'tests/integration/utils/dbus-pulse-volume.cpp')
-rw-r--r-- | tests/integration/utils/dbus-pulse-volume.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/integration/utils/dbus-pulse-volume.cpp b/tests/integration/utils/dbus-pulse-volume.cpp index 7d51b23..2bbc5d4 100644 --- a/tests/integration/utils/dbus-pulse-volume.cpp +++ b/tests/integration/utils/dbus-pulse-volume.cpp @@ -1,6 +1,6 @@ /* - * Copyright (C) 2015 Canonical Ltd. - * Copyright (C) 2021 Robert Tari + * Copyright 2015 Canonical Ltd. + * Copyright 2021 Robert Tari * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -141,14 +141,14 @@ bool DBusPulseVolume::setVolume(QString const & role, double volume) if (accounts_interface_) { - QDBusVariant dbusVar(QVariant::fromValue(volume)); - QDBusReply<void> set_vol = accounts_interface_->call(QLatin1String("Set"), + QDBusVariant pDbusVar(QVariant::fromValue(volume)); + QDBusReply<void> pSetVol = accounts_interface_->call(QLatin1String("Set"), QVariant::fromValue(QString("com.lomiri.AccountsService.Sound")), QVariant::fromValue(QString("Volume")), - QVariant::fromValue(dbusVar)); + QVariant::fromValue(pDbusVar)); if (!set_vol.isValid()) { - qWarning() << "SetVolume::setVolume(): D-Bus error: " << set_vol.error().message(); + qWarning() << "SetVolume::setVolume(): D-Bus error: " << pSetVol.error().message(); return false; } } |