2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Avoid global copying in Linux native notifications

This commit is contained in:
Ilya Fedin
2023-09-19 13:47:13 +04:00
committed by John Preston
parent 4e97599e9d
commit 90f52d80d7

View File

@@ -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")