mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Avoid global copying in Linux native notifications
This commit is contained in:
parent
4e97599e9d
commit
90f52d80d7
1 changed files with 3 additions and 3 deletions
|
@ -461,7 +461,7 @@ bool NotificationData::init(
|
|||
}
|
||||
|
||||
const auto weak = base::make_weak(this);
|
||||
const auto capabilities = CurrentCapabilities;
|
||||
const auto &capabilities = CurrentCapabilities;
|
||||
|
||||
const auto signalEmitted = crl::guard(weak, [=](
|
||||
const Glib::RefPtr<Gio::DBus::Connection> &connection,
|
||||
|
@ -924,8 +924,8 @@ private:
|
|||
|
||||
Manager::Private::Private(not_null<Manager*> manager)
|
||||
: _manager(manager) {
|
||||
const auto serverInformation = CurrentServerInformation;
|
||||
const auto capabilities = CurrentCapabilities;
|
||||
const auto &serverInformation = CurrentServerInformation;
|
||||
const auto &capabilities = CurrentCapabilities;
|
||||
|
||||
if (serverInformation.has_value()) {
|
||||
LOG(("Notification daemon product name: %1")
|
||||
|
|
Loading…
Add table
Reference in a new issue