mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix build with clang
This commit is contained in:
@@ -80,7 +80,8 @@ std::unique_ptr<base::Platform::DBus::ServiceWatcher> CreateServiceWatcher() {
|
|||||||
try {
|
try {
|
||||||
return ranges::contains(
|
return ranges::contains(
|
||||||
base::Platform::DBus::ListActivatableNames(connection),
|
base::Platform::DBus::ListActivatableNames(connection),
|
||||||
Glib::ustring(std::string(kService)));
|
std::string(kService),
|
||||||
|
&Glib::ustring::raw);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
// avoid service restart loop in sandboxed environments
|
// avoid service restart loop in sandboxed environments
|
||||||
return true;
|
return true;
|
||||||
@@ -129,7 +130,7 @@ void StartServiceAsync(Fn<void()> callback) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const auto errorName =
|
const auto errorName =
|
||||||
Gio::DBus::ErrorUtils::get_remote_error(e);
|
Gio::DBus::ErrorUtils::get_remote_error(e).raw();
|
||||||
|
|
||||||
if (!ranges::contains(NotSupportedErrors, errorName)) {
|
if (!ranges::contains(NotSupportedErrors, errorName)) {
|
||||||
throw e;
|
throw e;
|
||||||
@@ -166,7 +167,8 @@ bool GetServiceRegistered() {
|
|||||||
try {
|
try {
|
||||||
return ranges::contains(
|
return ranges::contains(
|
||||||
DBus::ListActivatableNames(connection),
|
DBus::ListActivatableNames(connection),
|
||||||
Glib::ustring(std::string(kService)));
|
std::string(kService),
|
||||||
|
&Glib::ustring::raw);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -264,7 +264,8 @@ void LaunchGApplication() {
|
|||||||
|
|
||||||
if (ranges::contains(
|
if (ranges::contains(
|
||||||
activatableNames,
|
activatableNames,
|
||||||
"org.freedesktop.Notifications")) {
|
"org.freedesktop.Notifications",
|
||||||
|
&Glib::ustring::raw)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Submodule Telegram/lib_base updated: 1df4417b0c...fb9000a353
Reference in New Issue
Block a user