From 5a39cf30cfeb547e65a5e9a72cf5ccb862c1ee5e Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sat, 26 Sep 2026 14:36:36 -0300
Subject: Replace zero 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>
---
 avahi-tqt/qt-watch.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/avahi-tqt/qt-watch.cpp b/avahi-tqt/qt-watch.cpp
index c0e3e1f..8a1646b 100644
--- a/avahi-tqt/qt-watch.cpp
+++ b/avahi-tqt/qt-watch.cpp
@@ -71,7 +71,7 @@ private:
 
 
 AvahiWatch::AvahiWatch(int fd, AvahiWatchEvent event, AvahiWatchCallback callback, void* userdata) : 
-    m_in(0), m_out(0),  m_callback(callback), m_fd(fd), m_userdata(userdata), m_incallback(false)
+    m_in(nullptr), m_out(nullptr),  m_callback(callback), m_fd(fd), m_userdata(userdata), m_incallback(false)
 {
     setWatchedEvents(event);
 }
@@ -94,8 +94,8 @@ void AvahiWatch::gotOut()
 
 void AvahiWatch::setWatchedEvents(AvahiWatchEvent event) 
 {
-    if (!(event & AVAHI_WATCH_IN)) { delete m_in; m_in=0; }
-    if (!(event & AVAHI_WATCH_OUT)) { delete m_out; m_out=0; }
+    if (!(event & AVAHI_WATCH_IN)) { delete m_in; m_in=nullptr; }
+    if (!(event & AVAHI_WATCH_OUT)) { delete m_out; m_out=nullptr; }
     if (event & AVAHI_WATCH_IN) { 
 	m_in = new TQSocketNotifier(m_fd,TQSocketNotifier::Read, this);
 	connect(m_in,TQ_SIGNAL(activated(int)),TQ_SLOT(gotIn()));
-- 
cgit v1.2.3

