From b76ee7f588dc22628230a743dec1bc9c936980fd Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sun, 20 Sep 2026 16:59:55 -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>
---
 src/dmctl.cpp         | 2 +-
 src/menuhandler.h     | 2 +-
 src/tastylistview.cpp | 2 +-
 src/tastylistview.h   | 2 +-
 src/tastymenu.cpp     | 4 ++--
 src/tastymenu.h       | 2 +-
 src/tastytooltip.h    | 2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/dmctl.cpp b/src/dmctl.cpp
index 86906ec..d6f8154 100644
--- a/src/dmctl.cpp
+++ b/src/dmctl.cpp
@@ -165,7 +165,7 @@ bool
 DM::canShutdown()
 {
 	if (DMType == OldKDM)
-		return strstr( ctl, ",maysd" ) != 0;
+		return strstr( ctl, ",maysd" ) != nullptr;
 
 	TQCString re;
 
diff --git a/src/menuhandler.h b/src/menuhandler.h
index 682ba3a..67bcb3c 100644
--- a/src/menuhandler.h
+++ b/src/menuhandler.h
@@ -54,7 +54,7 @@ class MenuHandler : public TQFrame{
     TQ_OBJECT
 
 public:
-    MenuHandler( TQWidget *parent, Prefs *prefs, char *name=0, WFlags fl=WType_TopLevel );
+    MenuHandler( TQWidget *parent, Prefs *prefs, char *name=nullptr, WFlags fl=WType_TopLevel );
 
     ~MenuHandler();
 
diff --git a/src/tastylistview.cpp b/src/tastylistview.cpp
index 9545903..e096f39 100644
--- a/src/tastylistview.cpp
+++ b/src/tastylistview.cpp
@@ -108,7 +108,7 @@ void TastyListView::contentsMouseMoveEvent( TQMouseEvent * e  )
   TDEListView::contentsMouseMoveEvent(e);
   mouseDown = (e->state() & TQt::LeftButton);
 
-  if( itemAt(  contentsToViewport(TQPoint(e->x(), e->y()))) == 0 )
+  if( itemAt(  contentsToViewport(TQPoint(e->x(), e->y()))) == nullptr )
     underCursorItem = nullptr;
 }
 
diff --git a/src/tastylistview.h b/src/tastylistview.h
index 04a63f0..4351caa 100644
--- a/src/tastylistview.h
+++ b/src/tastylistview.h
@@ -69,7 +69,7 @@ private:
     TastyListViewToolTip *listItemTip;
 
 public:
-    TastyListView( TQWidget * parent = 0, const char * name = 0);
+    TastyListView( TQWidget * parent = nullptr, const char * name = nullptr);
 
     ~TastyListView();
 
diff --git a/src/tastymenu.cpp b/src/tastymenu.cpp
index 1ddb231..18ecdb0 100644
--- a/src/tastymenu.cpp
+++ b/src/tastymenu.cpp
@@ -255,8 +255,8 @@ void TastyMenu::preferences()
   if(TDEConfigDialog::showDialog("settings"))
     return;
 
-  Appearance *appearanceDialog = new Appearance(0, "appearance" );
-  Behaviour *behaviourDialog = new Behaviour(0, "behaviour" );
+  Appearance *appearanceDialog = new Appearance(nullptr, "appearance" );
+  Behaviour *behaviourDialog = new Behaviour(nullptr, "behaviour" );
 
   TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", prefSkel,
                                             KDialogBase::Tabbed,
diff --git a/src/tastymenu.h b/src/tastymenu.h
index dbb4cc4..5ebd0ac 100644
--- a/src/tastymenu.h
+++ b/src/tastymenu.h
@@ -56,7 +56,7 @@ public:
      * @param name A TQt object name for your applet.
      **/
     TastyMenu(const TQString& configFile, Type t = Normal, int actions = 0,
-        TQWidget *parent = 0, const char *name = 0);
+        TQWidget *parent = nullptr, const char *name = nullptr);
     /** destructor */
     ~TastyMenu();
     
diff --git a/src/tastytooltip.h b/src/tastytooltip.h
index 3b78a03..35fe34b 100644
--- a/src/tastytooltip.h
+++ b/src/tastytooltip.h
@@ -31,7 +31,7 @@
 class TastyToolTip : public TQWidget
 {
 public:
-  TastyToolTip( TQWidget * parent=0,const char * name=0, WFlags fl=WType_TopLevel);
+  TastyToolTip( TQWidget * parent=nullptr,const char * name=nullptr, WFlags fl=WType_TopLevel);
 
     ~TastyToolTip();
 
-- 
cgit v1.2.3

