Avoid global copying in Linux native notifications
This commit is contained in:
parent
4e97599e9d
commit
90f52d80d7
|
@ -461,7 +461,7 @@ bool NotificationData::init(
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto weak = base::make_weak(this);
|
const auto weak = base::make_weak(this);
|
||||||
const auto capabilities = CurrentCapabilities;
|
const auto &capabilities = CurrentCapabilities;
|
||||||
|
|
||||||
const auto signalEmitted = crl::guard(weak, [=](
|
const auto signalEmitted = crl::guard(weak, [=](
|
||||||
const Glib::RefPtr<Gio::DBus::Connection> &connection,
|
const Glib::RefPtr<Gio::DBus::Connection> &connection,
|
||||||
|
@ -924,8 +924,8 @@ private:
|
||||||
|
|
||||||
Manager::Private::Private(not_null<Manager*> manager)
|
Manager::Private::Private(not_null<Manager*> manager)
|
||||||
: _manager(manager) {
|
: _manager(manager) {
|
||||||
const auto serverInformation = CurrentServerInformation;
|
const auto &serverInformation = CurrentServerInformation;
|
||||||
const auto capabilities = CurrentCapabilities;
|
const auto &capabilities = CurrentCapabilities;
|
||||||
|
|
||||||
if (serverInformation.has_value()) {
|
if (serverInformation.has_value()) {
|
||||||
LOG(("Notification daemon product name: %1")
|
LOG(("Notification daemon product name: %1")
|
||||||
|
|
Loading…
Reference in New Issue