From 532af048489684c0b2f322d4b11c8361e20dd579 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 25 Feb 2018 21:54:01 +0100 Subject: [PATCH] DesktopNotificationsFactory: Don't include config.h in header --- src/lib/notifications/desktopnotificationsfactory.cpp | 8 ++++++-- src/lib/notifications/desktopnotificationsfactory.h | 3 --- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib/notifications/desktopnotificationsfactory.cpp b/src/lib/notifications/desktopnotificationsfactory.cpp index 3fd72f7db..1dc5887fc 100644 --- a/src/lib/notifications/desktopnotificationsfactory.cpp +++ b/src/lib/notifications/desktopnotificationsfactory.cpp @@ -111,17 +111,21 @@ void DesktopNotificationsFactory::nativeNotificationPreview() m_notifType = type; } -#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS) void DesktopNotificationsFactory::updateLastId(const QDBusMessage &msg) { + Q_UNUSED(msg) +#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS) QVariantList list = msg.arguments(); if (list.count() > 0) { m_uint = list.at(0).toInt(); } +#endif } void DesktopNotificationsFactory::error(const QDBusError &error) { + Q_UNUSED(error) +#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS) qWarning() << "QDBusError:" << error.message(); -} #endif +} diff --git a/src/lib/notifications/desktopnotificationsfactory.h b/src/lib/notifications/desktopnotificationsfactory.h index e843683b3..b37ee7d74 100644 --- a/src/lib/notifications/desktopnotificationsfactory.h +++ b/src/lib/notifications/desktopnotificationsfactory.h @@ -19,7 +19,6 @@ #define DESKTOPNOTIFICATIONSFACTORY_H #include "qzcommon.h" -#include "../config.h" #include #include @@ -48,10 +47,8 @@ public: void nativeNotificationPreview(); private Q_SLOTS: -#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS) void updateLastId(const QDBusMessage &msg); void error(const QDBusError &error); -#endif private: bool m_enabled;