From 854c978740b35886013d1f921e78e6a01159a496 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sun, 20 Sep 2026 20:29:11 -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/hdsensorslist.cpp | 4 ++--
 src/lmsensor.cpp      | 6 +++---
 src/lmsensors.cpp     | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/hdsensorslist.cpp b/src/hdsensorslist.cpp
index f2dcdda..651527b 100644
--- a/src/hdsensorslist.cpp
+++ b/src/hdsensorslist.cpp
@@ -152,8 +152,8 @@ bool HDSensorsList::getDisks(TQStringList &disks )
   DIR *dir;
 
   /* Get a listing of the hard drives looking under sysfs first then falling back to /proc/ide */
-  if((dir = opendir ("/sys/block")) == NULL)
-    if ((dir = opendir ("/proc/ide")) == NULL)
+  if((dir = opendir ("/sys/block")) == nullptr)
+    if ((dir = opendir ("/proc/ide")) == nullptr)
       return false;
   TQString str;
   struct dirent *ptr;
diff --git a/src/lmsensor.cpp b/src/lmsensor.cpp
index cc5d6cd..27fc09b 100644
--- a/src/lmsensor.cpp
+++ b/src/lmsensor.cpp
@@ -40,7 +40,7 @@ bool LMSensor::init(const sensors_feature **data, int *nr1, int *nr2)
  const sensors_chip_name *chip_name= getChipName();
  const char* main_name = (*data)->name;
  feature= (*data)->number;
- char *label = NULL;
+ char *label = nullptr;
  TQString uniqueSensorName;
 
 #if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */
@@ -110,7 +110,7 @@ bool LMSensor::init(const sensors_feature **data, int *nr1, int *nr2)
  {
     setDescription(TQString(label));
     delete label;
-    label = NULL;
+    label = nullptr;
  }
  else
  {
@@ -207,7 +207,7 @@ bool LMSensor::init(const sensors_feature **data, int *nr1, int *nr2)
   {
      setDescription(TQString(label));
      delete label;
-     label = NULL;
+     label = nullptr;
   }
   else
     setDescription( uniqueSensorName.latin1() );
diff --git a/src/lmsensors.cpp b/src/lmsensors.cpp
index 4ae34e8..a54fe30 100644
--- a/src/lmsensors.cpp
+++ b/src/lmsensors.cpp
@@ -52,7 +52,7 @@ bool LMSensors::initSensors()
    return false;
  }
 #else
- FILE *fp=NULL;
+ FILE *fp=nullptr;
 #endif
  int err= sensors_init(fp);
  if(err) {
@@ -79,7 +79,7 @@ void LMSensors::createLMSensors()
        }
  }
 #else
- while( (chip_name= sensors_get_detected_chips(NULL, &err)) )
+ while( (chip_name= sensors_get_detected_chips(nullptr, &err)) )
           (void)new LMSensorsChip(chip_name,this);
 #endif
 }
-- 
cgit v1.2.3

