Get rid of 'paramtersCopy' in dbus code

This commit is contained in:
Ilya Fedin 2022-07-26 04:42:22 +04:00 committed by John Preston
parent 238a2f4477
commit e8477e5911
3 changed files with 4 additions and 6 deletions

View File

@ -118,12 +118,10 @@ void PortalAutostart(bool start, bool silent) {
const Glib::ustring &object_path,
const Glib::ustring &interface_name,
const Glib::ustring &signal_name,
const Glib::VariantContainerBase &parameters) {
Glib::VariantContainerBase parameters) {
try {
auto parametersCopy = parameters;
const auto response = base::Platform::GlibVariantCast<
uint>(parametersCopy.get_child(0));
uint>(parameters.get_child(0));
if (response && !silent) {
LOG(("Portal Autostart Error: Request denied"));

@ -1 +1 @@
Subproject commit 2bd3ac73e0bacdb03132c9520009d501caed1f03
Subproject commit d69b49fdd7bcb0b3414bc66fb34606dd56f695ba

@ -1 +1 @@
Subproject commit 439b21ce26acbdce808bc4777f3abc3adf430857
Subproject commit 5fb2efe1a338362679e37ef82d9b52ab7c2a6d36