From 68ad1a53a55fcc8fd1d063a9532a5b3465f597fa Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Wed, 9 Oct 2024 21:43:50 +0100 Subject: [PATCH] Uncommenting code to silence compiler warnings but retaining noop --- .../dbusnotificationslistener.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/plugins/sendnotifications/dbusnotificationslistener.cpp b/plugins/sendnotifications/dbusnotificationslistener.cpp index 2c5678dc2..150ae90ae 100644 --- a/plugins/sendnotifications/dbusnotificationslistener.cpp +++ b/plugins/sendnotifications/dbusnotificationslistener.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -355,15 +356,15 @@ bool DBusNotificationsListener::parseImageDataArgument(const QVariant &argument, bool &hasAlpha, QByteArray &imageData) const { - // FIXME - // if (!argument.canConvert()) { - // return false; - // } - // const QDBusArgument dbusArg = argument.value(); - // dbusArg.beginStructure(); - // dbusArg >> width >> height >> rowStride >> hasAlpha >> bitsPerSample >> channels >> imageData; - // dbusArg.endStructure(); return true; + // FIXME + if (!argument.canConvert()) { + return false; + } + const QDBusArgument dbusArg = argument.value(); + dbusArg.beginStructure(); + dbusArg >> width >> height >> rowStride >> hasAlpha >> bitsPerSample >> channels >> imageData; + dbusArg.endStructure(); } QSharedPointer DBusNotificationsListener::iconForImageData(const QVariant &argument) const