2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-08 02:25:13 +00:00

Fix implicit conversions from QByteArray

This commit is contained in:
Ilya Fedin
2021-02-19 14:09:01 +04:00
committed by John Preston
parent 22cbf32a14
commit bbf49b024a
11 changed files with 60 additions and 56 deletions

View File

@@ -363,10 +363,10 @@ NotificationData::NotificationData(
_notificationRepliedSignalId = g_dbus_connection_signal_subscribe(
_dbusConnection,
kService.utf8(),
kInterface.utf8(),
kService.utf8().constData(),
kInterface.utf8().constData(),
"NotificationReplied",
kObjectPath.utf8(),
kObjectPath.utf8().constData(),
nullptr,
G_DBUS_SIGNAL_FLAGS_NONE,
signalEmitted,
@@ -380,10 +380,10 @@ NotificationData::NotificationData(
_actionInvokedSignalId = g_dbus_connection_signal_subscribe(
_dbusConnection,
kService.utf8(),
kInterface.utf8(),
kService.utf8().constData(),
kInterface.utf8().constData(),
"ActionInvoked",
kObjectPath.utf8(),
kObjectPath.utf8().constData(),
nullptr,
G_DBUS_SIGNAL_FLAGS_NONE,
signalEmitted,
@@ -420,14 +420,14 @@ NotificationData::NotificationData(
_hints.emplace(
qsl("desktop-entry"),
g_variant_new_string(GetLauncherBasename().toUtf8()));
g_variant_new_string(GetLauncherBasename().toUtf8().constData()));
_notificationClosedSignalId = g_dbus_connection_signal_subscribe(
_dbusConnection,
kService.utf8(),
kInterface.utf8(),
kService.utf8().constData(),
kInterface.utf8().constData(),
"NotificationClosed",
kObjectPath.utf8(),
kObjectPath.utf8().constData(),
nullptr,
G_DBUS_SIGNAL_FLAGS_NONE,
signalEmitted,
@@ -497,9 +497,9 @@ void NotificationData::show() {
g_dbus_connection_call(
_dbusConnection,
kService.utf8(),
kObjectPath.utf8(),
kInterface.utf8(),
kService.utf8().constData(),
kObjectPath.utf8().constData(),
kInterface.utf8().constData(),
"Notify",
g_variant_new(
"(susssasa{sv}i)",
@@ -559,9 +559,9 @@ void NotificationData::notificationShown(
void NotificationData::close() {
g_dbus_connection_call(
_dbusConnection,
kService.utf8(),
kObjectPath.utf8(),
kInterface.utf8(),
kService.utf8().constData(),
kObjectPath.utf8().constData(),
kInterface.utf8().constData(),
"CloseNotification",
g_variant_new("(u)", _notificationId),
nullptr,