From b81ea9a54ff8baff51d52c3211c7d38098aef455 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sun, 20 Sep 2026 21:11:17 -0300
Subject: Replace NULL pointer constants with nullptr
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 src/daemon/daemon.cpp | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp
index 7eaf615..e6bf6c5 100644
--- a/src/daemon/daemon.cpp
+++ b/src/daemon/daemon.cpp
@@ -44,7 +44,7 @@
 
 #include "daemon.h"
 
-NotificationContainer* GTKNotifierContainer = NULL;
+NotificationContainer* GTKNotifierContainer = nullptr;
 void real_handleGTKMain();
 
 NotificationContainer::NotificationContainer() : TDEPassivePopupStackContainer() {
@@ -98,7 +98,7 @@ typedef struct
 
 } NotifyTimeout;
 
-static DBusConnection *dbus_conn = NULL;
+static DBusConnection *dbus_conn = nullptr;
 
 #define CHECK_DBUS_VERSION(major, minor) \
 	(DBUS_MAJOR_VER > (major) || \
@@ -123,7 +123,7 @@ notify_daemon_finalize(GObject *object)
 	NotifyDaemon *daemon       = NOTIFY_DAEMON(object);
 	GObjectClass *parent_class = G_OBJECT_CLASS(notify_daemon_parent_class);
 
-	if (parent_class->finalize != NULL)
+	if (parent_class->finalize != nullptr)
 		parent_class->finalize(object);
 }
 
@@ -152,8 +152,8 @@ notify_daemon_notify_handler(NotifyDaemon *daemon,
 							 int timeout, DBusGMethodInvocation *context)
 {
 	NotifyDaemonPrivate *priv = daemon->priv;
-	NotifyTimeout *nt = NULL;
-	GtkWindow *nw = NULL;
+	NotifyTimeout *nt = nullptr;
+	GtkWindow *nw = nullptr;
 	GValue *data;
 	gboolean use_pos_data = FALSE;
 	gboolean new_notification = FALSE;
@@ -164,11 +164,11 @@ notify_daemon_notify_handler(NotifyDaemon *daemon,
 	gint i;
 
 	/* deal with x, and y hints */
-	if ((data = (GValue *)g_hash_table_lookup(hints, "x")) != NULL)
+	if ((data = (GValue *)g_hash_table_lookup(hints, "x")) != nullptr)
 	{
 		x = g_value_get_int(data);
 
-		if ((data = (GValue *)g_hash_table_lookup(hints, "y")) != NULL)
+		if ((data = (GValue *)g_hash_table_lookup(hints, "y")) != nullptr)
 		{
 			y = g_value_get_int(data);
 			use_pos_data = TRUE;
@@ -208,7 +208,7 @@ notify_daemon_get_capabilities(NotifyDaemon *daemon, char ***caps)
 	(*caps)[2] = g_strdup("body-hyperlinks");
 	(*caps)[3] = g_strdup("body-markup");
 	(*caps)[4] = g_strdup("icon-static");
-	(*caps)[5] = NULL;
+	(*caps)[5] = nullptr;
 
 	return TRUE;
 }
@@ -253,11 +253,11 @@ main(int argc, char **argv)
 
 	gtk_init(&argc, &argv);
 
-	error = NULL;
+	error = nullptr;
 
 	connection = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
 
-	if (connection == NULL)
+	if (connection == nullptr)
 	{
 		g_printerr("Failed to open connection to bus: %s\n",
 				   error->message);
@@ -285,7 +285,7 @@ main(int argc, char **argv)
 		g_error("Could not acquire name: %s", error->message);
 	}
 
-	daemon = static_cast<NotifyDaemon*>(g_object_new(NOTIFY_TYPE_DAEMON, NULL));
+	daemon = static_cast<NotifyDaemon*>(g_object_new(NOTIFY_TYPE_DAEMON, nullptr));
 
 	dbus_g_connection_register_g_object(connection,
 										"/org/freedesktop/Notifications",
-- 
cgit v1.2.3

