mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Get rid of 'paramtersCopy' in dbus code
This commit is contained in:
@@ -118,12 +118,10 @@ void PortalAutostart(bool start, bool silent) {
|
|||||||
const Glib::ustring &object_path,
|
const Glib::ustring &object_path,
|
||||||
const Glib::ustring &interface_name,
|
const Glib::ustring &interface_name,
|
||||||
const Glib::ustring &signal_name,
|
const Glib::ustring &signal_name,
|
||||||
const Glib::VariantContainerBase ¶meters) {
|
Glib::VariantContainerBase parameters) {
|
||||||
try {
|
try {
|
||||||
auto parametersCopy = parameters;
|
|
||||||
|
|
||||||
const auto response = base::Platform::GlibVariantCast<
|
const auto response = base::Platform::GlibVariantCast<
|
||||||
uint>(parametersCopy.get_child(0));
|
uint>(parameters.get_child(0));
|
||||||
|
|
||||||
if (response && !silent) {
|
if (response && !silent) {
|
||||||
LOG(("Portal Autostart Error: Request denied"));
|
LOG(("Portal Autostart Error: Request denied"));
|
||||||
|
Submodule Telegram/lib_base updated: 2bd3ac73e0...d69b49fdd7
Submodule Telegram/lib_webview updated: 439b21ce26...5fb2efe1a3
Reference in New Issue
Block a user