diff options
author | Emanoil Kotsev <[email protected]> | 2024-06-26 20:21:35 +0000 |
---|---|---|
committer | Emanoil Kotsev <[email protected]> | 2024-11-09 18:49:26 +0000 |
commit | 7ea09f3f10350e44b8b41566f50449219cf6a4bf (patch) | |
tree | 13f43bb3f49078d63cdc992a5f50301bcba6e10d /src/daemon/NotificationsService.cpp | |
parent | fddb92945609b0b1f69967a9729f030b712ebdca (diff) | |
download | kdbusnotification-7ea09f3f10350e44b8b41566f50449219cf6a4bf.tar.gz kdbusnotification-7ea09f3f10350e44b8b41566f50449219cf6a4bf.zip |
Update and clean up
Signed-off-by: Emanoil Kotsev <[email protected]>
Diffstat (limited to 'src/daemon/NotificationsService.cpp')
-rw-r--r-- | src/daemon/NotificationsService.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/daemon/NotificationsService.cpp b/src/daemon/NotificationsService.cpp index f2992c7..9ee757b 100644 --- a/src/daemon/NotificationsService.cpp +++ b/src/daemon/NotificationsService.cpp @@ -30,6 +30,8 @@ #define SRV_VERSION "1.1" #define SPEC_VERSION "1.1" +#define NOTIFICATIONS_NAME "Notification Daemon" +#define TRINITY_DESKTOP_PROJECT "Trinity Desktop Project" NotificationsService::NotificationsService(TQT_DBusConnection &conn) : org::freedesktop::NotificationsInterface(), mConnection(&conn) @@ -46,7 +48,6 @@ void NotificationsService::closeNotifyWidget(TQ_UINT32 id, TQ_UINT32 reason) { if (notificationMap[id]) { notificationMap[id]->close(); - delete notificationMap[id]; notificationMap.remove(id); } @@ -87,8 +88,8 @@ bool NotificationsService::ReloadSettings(TQT_DBusError& error) { bool NotificationsService::GetServerInformation(TQString& return_name, TQString& return_vendor, TQString& return_version, TQString& return_spec_version, TQT_DBusError& error) { - return_name = TQString("Notification Daemon"); - return_vendor = TQString("Trinity Desktop Project"); + return_name = TQString(NOTIFICATIONS_NAME); + return_vendor = TQString(TRINITY_DESKTOP_PROJECT); return_version = TQString(SRV_VERSION); return_spec_version = TQString(SPEC_VERSION); return true; |