Get rid of unneeded gi::result wrap
This commit is contained in:
parent
2ea50f5c85
commit
9514b0d1f1
|
@ -30,10 +30,10 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
[[nodiscard]] XdpInhibit::Inhibit inhibit() {
|
[[nodiscard]] XdpInhibit::Inhibit inhibit() {
|
||||||
return *_inhibitProxy;
|
return _inhibitProxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
gi::result<XdpInhibit::InhibitProxy> _inhibitProxy;
|
XdpInhibit::InhibitProxy _inhibitProxy;
|
||||||
base::Platform::XDP::SettingWatcher _darkModeWatcher;
|
base::Platform::XDP::SettingWatcher _darkModeWatcher;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -43,7 +43,8 @@ LinuxIntegration::LinuxIntegration()
|
||||||
Gio::BusType::SESSION_,
|
Gio::BusType::SESSION_,
|
||||||
Gio::DBusProxyFlags::DO_NOT_AUTO_START_AT_CONSTRUCTION_,
|
Gio::DBusProxyFlags::DO_NOT_AUTO_START_AT_CONSTRUCTION_,
|
||||||
std::string(base::Platform::XDP::kService),
|
std::string(base::Platform::XDP::kService),
|
||||||
std::string(base::Platform::XDP::kObjectPath)))
|
std::string(base::Platform::XDP::kObjectPath),
|
||||||
|
nullptr))
|
||||||
, _darkModeWatcher([](
|
, _darkModeWatcher([](
|
||||||
const Glib::ustring &group,
|
const Glib::ustring &group,
|
||||||
const Glib::ustring &key,
|
const Glib::ustring &key,
|
||||||
|
@ -67,7 +68,7 @@ void LinuxIntegration::init() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto uniqueName = _inhibitProxy->get_connection().get_unique_name();
|
auto uniqueName = _inhibitProxy.get_connection().get_unique_name();
|
||||||
uniqueName.erase(0, 1);
|
uniqueName.erase(0, 1);
|
||||||
uniqueName.replace(uniqueName.find('.'), 1, 1, '_');
|
uniqueName.replace(uniqueName.find('.'), 1, 1, '_');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user