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
@@ -103,9 +103,9 @@ GSDMediaKeys::GSDMediaKeys() {
auto reply = g_dbus_connection_call_sync(
_dbusConnection,
_service.toUtf8(),
_objectPath.toUtf8(),
_interface.toUtf8(),
_service.toUtf8().constData(),
_objectPath.toUtf8().constData(),
_interface.toUtf8().constData(),
"GrabMediaPlayerKeys",
g_variant_new(
"(su)",
@@ -127,10 +127,10 @@ GSDMediaKeys::GSDMediaKeys() {
_signalId = g_dbus_connection_signal_subscribe(
_dbusConnection,
_service.toUtf8(),
_interface.toUtf8(),
_service.toUtf8().constData(),
_interface.toUtf8().constData(),
"MediaPlayerKeyPressed",
_objectPath.toUtf8(),
_objectPath.toUtf8().constData(),
nullptr,
G_DBUS_SIGNAL_FLAGS_NONE,
KeyPressed,
@@ -150,9 +150,9 @@ GSDMediaKeys::~GSDMediaKeys() {
if (_grabbed) {
auto reply = g_dbus_connection_call_sync(
_dbusConnection,
_service.toUtf8(),
_objectPath.toUtf8(),
_interface.toUtf8(),
_service.toUtf8().constData(),
_objectPath.toUtf8().constData(),
_interface.toUtf8().constData(),
"ReleaseMediaPlayerKeys",
g_variant_new(
"(s)",