From 5107c9181dc2bf54d5a1bb460d7979e327949d0b Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sat, 3 Oct 2026 17:46:56 -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>
---
 libkdcraw/libkdcraw/dcrawsettingswidget.cpp | 82 ++++++++++++++---------------
 libkdcraw/libkdcraw/rcombobox.cpp           |  4 +-
 libkdcraw/libkdcraw/rcombobox.h             |  2 +-
 libkdcraw/libkdcraw/rnuminput.cpp           |  8 +--
 libkdcraw/libkdcraw/rnuminput.h             |  4 +-
 5 files changed, 50 insertions(+), 50 deletions(-)

diff --git a/libkdcraw/libkdcraw/dcrawsettingswidget.cpp b/libkdcraw/libkdcraw/dcrawsettingswidget.cpp
index 850309f..1642f97 100644
--- a/libkdcraw/libkdcraw/dcrawsettingswidget.cpp
+++ b/libkdcraw/libkdcraw/dcrawsettingswidget.cpp
@@ -55,47 +55,47 @@ public:
 
     DcrawSettingsWidgetPriv()
     {
-        sixteenBitsImage               = 0;
-        fourColorCheckBox              = 0;
-        brightnessLabel                = 0;
-        brightnessSpinBox              = 0;
-        blackPointCheckBox             = 0;
-        blackPointSpinBox              = 0;
-        whitePointCheckBox             = 0;
-        whitePointSpinBox              = 0;
-        whiteBalanceComboBox           = 0;
-        whiteBalanceLabel              = 0;
-        customWhiteBalanceSpinBox      = 0;
-        customWhiteBalanceLabel        = 0;
-        customWhiteBalanceGreenSpinBox = 0;
-        customWhiteBalanceGreenLabel   = 0;
-        unclipColorLabel               = 0;
-        dontStretchPixelsCheckBox      = 0;
-        RAWQualityComboBox             = 0;
-        RAWQualityLabel                = 0;
-        enableNoiseReduction           = 0;
-        NRThresholdSpinBox             = 0;
-        NRThresholdLabel               = 0;
-        enableCACorrection             = 0;
-        caRedMultSpinBox               = 0;
-        caBlueMultSpinBox              = 0;
-        caRedMultLabel                 = 0;
-        caBlueMultLabel                = 0;
-        unclipColorComboBox            = 0;
-        reconstructLabel               = 0;
-        reconstructSpinBox             = 0;
-        outputColorSpaceLabel          = 0;
-        outputColorSpaceComboBox       = 0;
-        demosaicingSettings            = 0;
-        whiteBalanceSettings           = 0;
-        correctionsSettings            = 0;
-        colormanSettings               = 0;
-        medianFilterPassesSpinBox      = 0;
-        medianFilterPassesLabel        = 0;
-        inIccUrlEdit                   = 0;
-        outIccUrlEdit                  = 0;
-        inputColorSpaceLabel           = 0;
-        inputColorSpaceComboBox        = 0;
+        sixteenBitsImage               = nullptr;
+        fourColorCheckBox              = nullptr;
+        brightnessLabel                = nullptr;
+        brightnessSpinBox              = nullptr;
+        blackPointCheckBox             = nullptr;
+        blackPointSpinBox              = nullptr;
+        whitePointCheckBox             = nullptr;
+        whitePointSpinBox              = nullptr;
+        whiteBalanceComboBox           = nullptr;
+        whiteBalanceLabel              = nullptr;
+        customWhiteBalanceSpinBox      = nullptr;
+        customWhiteBalanceLabel        = nullptr;
+        customWhiteBalanceGreenSpinBox = nullptr;
+        customWhiteBalanceGreenLabel   = nullptr;
+        unclipColorLabel               = nullptr;
+        dontStretchPixelsCheckBox      = nullptr;
+        RAWQualityComboBox             = nullptr;
+        RAWQualityLabel                = nullptr;
+        enableNoiseReduction           = nullptr;
+        NRThresholdSpinBox             = nullptr;
+        NRThresholdLabel               = nullptr;
+        enableCACorrection             = nullptr;
+        caRedMultSpinBox               = nullptr;
+        caBlueMultSpinBox              = nullptr;
+        caRedMultLabel                 = nullptr;
+        caBlueMultLabel                = nullptr;
+        unclipColorComboBox            = nullptr;
+        reconstructLabel               = nullptr;
+        reconstructSpinBox             = nullptr;
+        outputColorSpaceLabel          = nullptr;
+        outputColorSpaceComboBox       = nullptr;
+        demosaicingSettings            = nullptr;
+        whiteBalanceSettings           = nullptr;
+        correctionsSettings            = nullptr;
+        colormanSettings               = nullptr;
+        medianFilterPassesSpinBox      = nullptr;
+        medianFilterPassesLabel        = nullptr;
+        inIccUrlEdit                   = nullptr;
+        outIccUrlEdit                  = nullptr;
+        inputColorSpaceLabel           = nullptr;
+        inputColorSpaceComboBox        = nullptr;
     }
 
     TQWidget         *demosaicingSettings;
diff --git a/libkdcraw/libkdcraw/rcombobox.cpp b/libkdcraw/libkdcraw/rcombobox.cpp
index a408425..f5a20ad 100644
--- a/libkdcraw/libkdcraw/rcombobox.cpp
+++ b/libkdcraw/libkdcraw/rcombobox.cpp
@@ -49,8 +49,8 @@ public:
     RComboBoxPriv()
     {
         defaultItem = 0;
-        resetButton = 0;
-        combo       = 0;
+        resetButton = nullptr;
+        combo       = nullptr;
     }
 
     int          defaultItem;
diff --git a/libkdcraw/libkdcraw/rcombobox.h b/libkdcraw/libkdcraw/rcombobox.h
index 34926a4..8b51af9 100644
--- a/libkdcraw/libkdcraw/rcombobox.h
+++ b/libkdcraw/libkdcraw/rcombobox.h
@@ -50,7 +50,7 @@ TQ_OBJECT
 
 public:
 
-    RComboBox(TQWidget *parent=0);
+    RComboBox(TQWidget *parent=nullptr);
     ~RComboBox();
 
     void setCurrentItem(int d);
diff --git a/libkdcraw/libkdcraw/rnuminput.cpp b/libkdcraw/libkdcraw/rnuminput.cpp
index 76216bc..1ceca71 100644
--- a/libkdcraw/libkdcraw/rnuminput.cpp
+++ b/libkdcraw/libkdcraw/rnuminput.cpp
@@ -50,8 +50,8 @@ public:
     RIntNumInputPriv()
     {
         defaultValue = 0;
-        resetButton  = 0;
-        input        = 0;
+        resetButton  = nullptr;
+        input        = nullptr;
     }
 
     int           defaultValue;
@@ -148,8 +148,8 @@ public:
     RDoubleNumInputPriv()
     {
         defaultValue = 0.0;
-        resetButton  = 0;
-        input        = 0;
+        resetButton  = nullptr;
+        input        = nullptr;
     }
 
     double           defaultValue;
diff --git a/libkdcraw/libkdcraw/rnuminput.h b/libkdcraw/libkdcraw/rnuminput.h
index 7e90da2..0bcdb83 100644
--- a/libkdcraw/libkdcraw/rnuminput.h
+++ b/libkdcraw/libkdcraw/rnuminput.h
@@ -51,7 +51,7 @@ TQ_OBJECT
 
 public:
 
-    RIntNumInput(TQWidget *parent=0);
+    RIntNumInput(TQWidget *parent=nullptr);
     ~RIntNumInput();
 
     int  value();
@@ -94,7 +94,7 @@ TQ_OBJECT
 
 public:
 
-    RDoubleNumInput(TQWidget *parent=0);
+    RDoubleNumInput(TQWidget *parent=nullptr);
     ~RDoubleNumInput();
 
     double value();
-- 
cgit v1.2.3

