From 38bdac9389fd4cc6ea051907014da5b6aec24c9a Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sun, 20 Sep 2026 16:22:18 -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/apppropprg.cpp     |  8 ++++----
 src/apppropprg.h       |  2 +-
 src/clip.h             |  2 +-
 src/item.cpp           |  2 +-
 src/kooldock.cpp       |  8 ++++----
 src/kooldock.h         |  2 +-
 src/main.cpp           | 18 +++++++++---------
 src/setupdialogprg.cpp |  4 ++--
 src/setupdialogprg.h   |  2 +-
 src/xosd.h             |  2 +-
 10 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/src/apppropprg.cpp b/src/apppropprg.cpp
index 91e7ede..d9c14fd 100644
--- a/src/apppropprg.cpp
+++ b/src/apppropprg.cpp
@@ -43,19 +43,19 @@ void appPropPrg::accept()
   puser = user->text();
 	
   if (icon.length() == 0) {
-    KMessageBox::sorry(0, i18n("You must select an icon!"), i18n("Error"), 1);
+    KMessageBox::sorry(nullptr, i18n("You must select an icon!"), i18n("Error"), 1);
     return;
   }
   if (desktop.length() == 0) {
-    KMessageBox::sorry(0, i18n("You must enter a name!"), i18n("Error"), 1);
+    KMessageBox::sorry(nullptr, i18n("You must enter a name!"), i18n("Error"), 1);
     return;
   }
   if (path.length() == 0) {
-    KMessageBox::sorry(0, i18n("You must enter a command or path!"), i18n("Error"), 1);
+    KMessageBox::sorry(nullptr, i18n("You must enter a command or path!"), i18n("Error"), 1);
     return;
   }
   if ((cuser->isChecked() == true) && (puser.length() == 0)) {
-    KMessageBox::sorry(0, i18n("You must provide a username!"), i18n("Error"), 1);
+    KMessageBox::sorry(nullptr, i18n("You must provide a username!"), i18n("Error"), 1);
     return;
   }
 
diff --git a/src/apppropprg.h b/src/apppropprg.h
index ae70b36..fd912ed 100644
--- a/src/apppropprg.h
+++ b/src/apppropprg.h
@@ -24,7 +24,7 @@ class appPropPrg : public appProp
   TQ_OBJECT
 
   public:
-    appPropPrg(TQWidget* parent = 0, const char* name = 0);
+    appPropPrg(TQWidget* parent = nullptr, const char* name = nullptr);
     ~appPropPrg();
     
     void addFile(const TQString& filename,
diff --git a/src/clip.h b/src/clip.h
index 92139c7..fe8c6a6 100644
--- a/src/clip.h
+++ b/src/clip.h
@@ -14,7 +14,7 @@ class clip : public TQWidget
 {
   TQ_OBJECT
   public:
-    clip(TQWidget* parent = 0, const char* name = 0);
+    clip(TQWidget* parent = nullptr, const char* name = nullptr);
 
     virtual ~clip();
     void clipDesktop(int, int, int, int, int, int, int, int, int, int, int, int);
diff --git a/src/item.cpp b/src/item.cpp
index 15c1266..206ef91 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -142,7 +142,7 @@ TQPixmap* Item::getIcon(int size)
     return icons.at(d / SIZE_INC);
   }
   else {
-    return 0;
+    return nullptr;
   }
 }
 
diff --git a/src/kooldock.cpp b/src/kooldock.cpp
index a22474d..c28e6dd 100644
--- a/src/kooldock.cpp
+++ b/src/kooldock.cpp
@@ -1455,7 +1455,7 @@ void KoolDock::run(const TQString& command)
   TQString cmd = (_filterData->uri().isLocalFile() ? _filterData->uri().path() :_filterData->uri().url());
   // Nothing interesting. Quit!
   if (cmd.isEmpty()) {
-    KMessageBox::sorry(0L, i18n("You have to enter a command to execute or a URL to be opened first."));
+    KMessageBox::sorry(nullptr, i18n("You have to enter a command to execute or a URL to be opened first."));
     return;
   }
   else {
@@ -1483,7 +1483,7 @@ void KoolDock::run(const TQString& command)
       case KURIFilterData::UNKNOWN:
       case KURIFilterData::ERROR:
       default:
-        KMessageBox::sorry(0, i18n("<qt>The program name or command <b>%1</b>\n"
+        KMessageBox::sorry(nullptr, i18n("<qt>The program name or command <b>%1</b>\n"
                                    "cannot be found. Please correct the command\n"
                                    "or URL and try again</qt>").arg(cmd));
         return;
@@ -1493,7 +1493,7 @@ void KoolDock::run(const TQString& command)
     return;
   }
   else {
-    KMessageBox::sorry(0, i18n("<qt>Could not run <b>%1</b>.\nPlease correct"
+    KMessageBox::sorry(nullptr, i18n("<qt>Could not run <b>%1</b>.\nPlease correct"
                                " the command or URL and try again.</qt>").arg(cmd));
     return;
   }
@@ -3540,7 +3540,7 @@ void KoolDock::init()
                     "Right click on the dock for a menu that allows you to configure it<br>"
                     "or run with <I>-o</I> parameter to have preferences window at start.<br>"
                     "We hope this software is usefull for you<br>-- The KoolDock Team");
-    KMessageBox::information(0L, i18n(welcomeMsg));
+    KMessageBox::information(nullptr, i18n(welcomeMsg));
     saveConf();	// create initial configuration.
   }
 
diff --git a/src/kooldock.h b/src/kooldock.h
index 66da666..edfefbb 100644
--- a/src/kooldock.h
+++ b/src/kooldock.h
@@ -63,7 +63,7 @@ class KoolDock : public TQWidget
 
    public:
    /** construtor */
-   KoolDock(TQWidget* parent = 0, const char* name = 0);
+   KoolDock(TQWidget* parent = nullptr, const char* name = nullptr);
    /** destructor */
    ~KoolDock();
 
diff --git a/src/main.cpp b/src/main.cpp
index 9154d43..ebd449e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -47,11 +47,11 @@ static const char *description = I18N_NOOP("<center><b>KoolDock</b></center>A Ko
 
 static TDECmdLineOptions options[] =
 {
-   { "o", 0, 0 },
-   { "options", I18N_NOOP("Show configuration window on start"), 0 },
-   { "k", 0, 0 },
-   { "kill", I18N_NOOP("Kills all processes called Kooldock"), 0 },
-   {0, 0, 0}
+   { "o", nullptr, nullptr },
+   { "options", I18N_NOOP("Show configuration window on start"), nullptr },
+   { "k", nullptr, nullptr },
+   { "kill", I18N_NOOP("Kills all processes called Kooldock"), nullptr },
+   {nullptr, nullptr, nullptr}
 };
 
 int main(int argc, char *argv[])
@@ -60,10 +60,10 @@ int main(int argc, char *argv[])
 
    TDEAboutData aboutData("kooldock", I18N_NOOP("KoolDock"),
                           KOOLDOCK_VERSION, description, TDEAboutData::License_GPL,
-                          "(c) 2003, 2006 - KoolDock team", 0, "http://ktown.kde.cl/kooldock", "kooldock-devel@lists.kde.cl");
-   aboutData.addAuthor("Matias Fernandez",0, "radix@kde.cl");
-   aboutData.addAuthor("Francisco Guidi",0, "francisco@guidi.com", "http://francisco.guidi.com");
-   aboutData.addAuthor("Blase Stanek", 0, "bisiek@op.pl");
+                          "(c) 2003, 2006 - KoolDock team", nullptr, "http://ktown.kde.cl/kooldock", "kooldock-devel@lists.kde.cl");
+   aboutData.addAuthor("Matias Fernandez", nullptr, "radix@kde.cl");
+   aboutData.addAuthor("Francisco Guidi", nullptr, "francisco@guidi.com", "http://francisco.guidi.com");
+   aboutData.addAuthor("Blase Stanek", nullptr, "bisiek@op.pl");
    aboutData.addCredit("Mauricio Bahamonde", I18N_NOOP("Project Webmaster"), "elkrammer@kde.cl", "http://ktown.kde.cl/~elkrammer/");
    aboutData.addCredit("Sebastian Sariego Benitez", I18N_NOOP("Icon and artwork"), "segfault@powers.cl", "http://segfault.kde.cl");
    aboutData.setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\nYour names"), I18N_NOOP("_: EMAIL OF TRANSLATORS\nYour emails"));
diff --git a/src/setupdialogprg.cpp b/src/setupdialogprg.cpp
index d715658..ce225f6 100644
--- a/src/setupdialogprg.cpp
+++ b/src/setupdialogprg.cpp
@@ -386,7 +386,7 @@ void SetupDialogPrg::removeLauncher()
 {
   if (fileName != nullptr) {
     TQString question = i18n("Do you want to remove ") + fileName + TQString("?");
-    int remove = KMessageBox::questionYesNo(0, question, i18n("Remove Launcher"));
+    int remove = KMessageBox::questionYesNo(nullptr, question, i18n("Remove Launcher"));
     if (remove != KMessageBox::Yes) {
       return;
     }
@@ -496,7 +496,7 @@ void SetupDialogPrg::appFill()
       if (((*it) != ".") && ((*it) != "..")) {
         desktopfile = new TDESimpleConfig(menuPath + (*it), true);
         desktopfile->setGroup("Desktop Entry");
-        TQPixmap pixm=icon_obj.loadIcon(desktopfile->readEntry("Icon"), TDEIcon::Desktop, 0, TDEIcon::DefaultState, 0L, false);
+        TQPixmap pixm=icon_obj.loadIcon(desktopfile->readEntry("Icon"), TDEIcon::Desktop, 0, TDEIcon::DefaultState, nullptr, false);
         new TDEIconViewItem(applist, desktopfile->readEntry("Name"), pixm);
         delete desktopfile;
       }
diff --git a/src/setupdialogprg.h b/src/setupdialogprg.h
index 2718b7b..4ebbc25 100644
--- a/src/setupdialogprg.h
+++ b/src/setupdialogprg.h
@@ -48,7 +48,7 @@ class SetupDialogPrg : public SetupDialog
 {
   TQ_OBJECT
   public:
-    SetupDialogPrg(TQWidget* parent = 0, const char* name = 0);
+    SetupDialogPrg(TQWidget* parent = nullptr, const char* name = nullptr);
     ~SetupDialogPrg();
     appProp* appdlg;
     TQString progPath;
diff --git a/src/xosd.h b/src/xosd.h
index 09e8f0f..2b845f2 100644
--- a/src/xosd.h
+++ b/src/xosd.h
@@ -18,7 +18,7 @@ class xosd : public TQWidget
 {
   TQ_OBJECT
   public:
-    xosd(TQWidget* parent = 0, const char* name = 0);
+    xosd(TQWidget* parent = nullptr, const char* name = nullptr);
 
     virtual ~xosd();
     void setText(const TQString& t);
-- 
cgit v1.2.3

