From 6524d932b68190e6fd41d7bbc922be7cfedcd145 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sat, 3 Oct 2026 17:42:34 -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>
---
 kteatime/toplevel.cpp     | 4 ++--
 ktux/sprite.h             | 2 +-
 kworldwatch/maploader.cpp | 2 +-
 kworldwatch/mapwidget.cpp | 6 +++---
 kworldwatch/zoneclock.cpp | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/kteatime/toplevel.cpp b/kteatime/toplevel.cpp
index 6ded50e..8965eaa 100644
--- a/kteatime/toplevel.cpp
+++ b/kteatime/toplevel.cpp
@@ -580,7 +580,7 @@ void TopLevel::listBoxItemSelected() {
 void TopLevel::nameEditTextChanged(const TQString& newText) {
 	/* this method also gets called when the last TeaListItem has been deleted
 	 * (to clear the name edit widget), so check for empty listbox */
-	if (listbox->currentItem() != NULL) {
+	if (listbox->currentItem()) {
 		listbox->blockSignals(true);
 		static_cast<TeaListItem *>(listbox->currentItem())->setName(newText);
 		listbox->blockSignals(false);
@@ -591,7 +591,7 @@ void TopLevel::nameEditTextChanged(const TQString& newText) {
 void TopLevel::spinBoxValueChanged(int v) {
 	/* this method also gets called when the last TeaListItem has been deleted
 	 * (to clear the time edit widget), so check for empty listbox */
-	if (listbox->currentItem() != NULL)
+	if (listbox->currentItem())
 		static_cast<TeaListItem *>(listbox->currentItem())->setTime(v);
 }
 
diff --git a/ktux/sprite.h b/ktux/sprite.h
index 405d71b..c2dd940 100644
--- a/ktux/sprite.h
+++ b/ktux/sprite.h
@@ -52,7 +52,7 @@ class KSpriteSetup : public TQDialog
     TQ_OBJECT
   
 public:
-    KSpriteSetup( TQWidget *parent = NULL, const char *name = NULL );
+    KSpriteSetup( TQWidget *parent = nullptr, const char *name = nullptr );
     ~KSpriteSetup();
 
 protected:
diff --git a/kworldwatch/maploader.cpp b/kworldwatch/maploader.cpp
index aadf0ad..816d902 100644
--- a/kworldwatch/maploader.cpp
+++ b/kworldwatch/maploader.cpp
@@ -127,7 +127,7 @@ TQBitmap MapLoader::darkMask(int width, int height)
   TQBitmap illuMask(width, height);
  
   // calculate the position of the sun
-  t = time(NULL);
+  t = time(nullptr);
   tmp = gmtime(&t);
   jt = jtime(tmp);
   sunpos(jt,false, &sunra, &sundec, &sunrv, &sunlong);
diff --git a/kworldwatch/mapwidget.cpp b/kworldwatch/mapwidget.cpp
index 24e69f7..19b3518 100644
--- a/kworldwatch/mapwidget.cpp
+++ b/kworldwatch/mapwidget.cpp
@@ -80,7 +80,7 @@ MapWidget::MapWidget(bool applet, bool restore, TQWidget *parent, const char *na
   setBackgroundMode(TQWidget::NoBackground);
   
   gmt_position = 0;
-  time_t t = time(NULL);
+  time_t t = time(nullptr);
   setTime(gmtime(&t));
 
   _flagList = new FlagList;
@@ -345,7 +345,7 @@ void MapWidget::setIllumination(bool i)
 
 void MapWidget::timeout()
 {
-  time_t t = time(NULL);
+  time_t t = time(nullptr);
   setTime(gmtime(&t));
 
   if (_cities && !_currentCity.isEmpty())
@@ -366,7 +366,7 @@ TQString MapWidget::cityTime(const TQString &city)
   setenv("TZ", city.latin1(), 1);
   tzset();
   
-  time_t t = time(NULL);
+  time_t t = time(nullptr);
   TQDateTime dt;
   dt.setTime_t(t);
   result.append(TQString("%1, %2").arg(TDEGlobal::locale()->formatTime(dt.time(), true)).arg(TDEGlobal::locale()->formatDate(dt.date(), true)));
diff --git a/kworldwatch/zoneclock.cpp b/kworldwatch/zoneclock.cpp
index e791b98..e4fc6a9 100644
--- a/kworldwatch/zoneclock.cpp
+++ b/kworldwatch/zoneclock.cpp
@@ -152,7 +152,7 @@ void ZoneClock::updateTime()
   setenv("TZ", _zone.latin1(), 1);
   tzset();
 
-  time_t t = time(NULL);
+  time_t t = time(nullptr);
   TQDateTime dt;
   dt.setTime_t(t);
   _timeLabel->setText(TQString("%1, %2").arg(TDEGlobal::locale()->formatTime(dt.time(), true)).arg(TDEGlobal::locale()->formatDate(dt.date(), true)));
-- 
cgit v1.2.3

