From e8477e59115dbe8bfdb1c9c7917be64a9f5cf344 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 26 Jul 2022 04:42:22 +0400 Subject: [PATCH] Get rid of 'paramtersCopy' in dbus code --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 6 ++---- Telegram/lib_base | 2 +- Telegram/lib_webview | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index 0115f618c..47149e748 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -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 ¶meters) { + 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")); diff --git a/Telegram/lib_base b/Telegram/lib_base index 2bd3ac73e..d69b49fdd 160000 --- a/Telegram/lib_base +++ b/Telegram/lib_base @@ -1 +1 @@ -Subproject commit 2bd3ac73e0bacdb03132c9520009d501caed1f03 +Subproject commit d69b49fdd7bcb0b3414bc66fb34606dd56f695ba diff --git a/Telegram/lib_webview b/Telegram/lib_webview index 439b21ce2..5fb2efe1a 160000 --- a/Telegram/lib_webview +++ b/Telegram/lib_webview @@ -1 +1 @@ -Subproject commit 439b21ce26acbdce808bc4777f3abc3adf430857 +Subproject commit 5fb2efe1a338362679e37ef82d9b52ab7c2a6d36