From b9a7557000cd864971e28641418f55133ccf4308 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sun, 20 Sep 2026 12:23:05 -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/autostart.cpp | 20 ++++++++++----------
 src/autostart.h   |  2 +-
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/autostart.cpp b/src/autostart.cpp
index e9ad6e1..f91701b 100644
--- a/src/autostart.cpp
+++ b/src/autostart.cpp
@@ -115,7 +115,7 @@ typedef KGenericFactory<CAutostart, TQWidget> autostartFactory;
 K_EXPORT_COMPONENT_FACTORY( kcm_autostart, autostartFactory("kcmautostart"))
 
 CAutostart::CAutostart(TQWidget *parent, const char *name, const TQStringList&)
-    : TDECModule(parent, name), myAboutData(0)
+    : TDECModule(parent, name), myAboutData(nullptr)
 {
   TQGridLayout * AutostartConfigLayout = new TQGridLayout( this, 1, 1, 11, 6, "AutostartConfigLayout");
 
@@ -165,9 +165,9 @@ CAutostart::CAutostart(TQWidget *parent, const char *name, const TQStringList&)
   TDEAboutData* about = new TDEAboutData("autostart", I18N_NOOP("TDE Autostart Manager"), "0.5",
     I18N_NOOP("TDE Autostart Manager Control Panel Module"),
     TDEAboutData::License_GPL,
-    I18N_NOOP("(c) 2006 Stephen Leaf"), 0, 0);
+    I18N_NOOP("(c) 2006 Stephen Leaf"), nullptr, nullptr);
 
-  about->addAuthor("Stephen Leaf", 0, "smileaf@smileaf.org");
+  about->addAuthor("Stephen Leaf", nullptr, "smileaf@smileaf.org");
   setAboutData( about );
 
 };
@@ -197,7 +197,7 @@ void CAutostart::load()
     const TQFileInfoList *list = autostartdir->entryInfoList();
     TQFileInfoListIterator it( *list );
     TQFileInfo *fi;
-    while ( (fi = it.current()) != 0 ) {
+    while ( (fi = it.current()) != nullptr ) {
       TQString filename = fi->fileName();
       CDesktopItem *item = new CDesktopItem( fi->absFilePath(), x, listCMD );
       if ( !item->mService ) {
@@ -224,7 +224,7 @@ void CAutostart::load()
 }
 
 void CAutostart::addCMD() {
-  KService::Ptr service = 0L;
+  KService::Ptr service = nullptr;
   KOpenWithDlg owdlg( this );
   if (owdlg.exec() != TQDialog::Accepted)
     return;
@@ -237,7 +237,7 @@ void CAutostart::addCMD() {
   KURL desktopTemplate;
 	
 	if ( service->type() == "Service") {
-    KMessageBox::error(0, i18n("Cannot add a Service entry to the list of autostart modules.\n") + service->desktopEntryPath());
+    KMessageBox::error(nullptr, i18n("Cannot add a Service entry to the list of autostart modules.\n") + service->desktopEntryPath());
 		return;
 	}
   else if ( service->desktopEntryName().isNull() ) {
@@ -252,7 +252,7 @@ void CAutostart::addCMD() {
     ksc.writeEntry("Type","Application");
     ksc.sync();
 
-    KPropertiesDialog *dlg = new KPropertiesDialog( desktopTemplate, this, 0, true /*modal*/, false /*no auto-show*/ );
+    KPropertiesDialog *dlg = new KPropertiesDialog( desktopTemplate, this, nullptr, true /*modal*/, false /*no auto-show*/ );
     if ( dlg->exec() != TQDialog::Accepted )
       return;
   }
@@ -260,12 +260,12 @@ void CAutostart::addCMD() {
     desktopTemplate = KURL( locate("apps", service->desktopEntryPath()) );
 		// Make sure the URL is not empty to avoid crashing the application
 		if (desktopTemplate.isEmpty()) {
-      KMessageBox::error(0, i18n("Can't find a matching entry for the selected item.\n") + service->desktopEntryPath());
+      KMessageBox::error(nullptr, i18n("Can't find a matching entry for the selected item.\n") + service->desktopEntryPath());
 			return;
 		}
 		
     KPropertiesDialog *dlg = new KPropertiesDialog( desktopTemplate, KURL(TDEGlobalSettings::autostartPath()),
-      service->name() + ".desktop", this, 0, true /*modal*/, false /*no auto-show*/ );
+      service->name() + ".desktop", this, nullptr, true /*modal*/, false /*no auto-show*/ );
     if ( dlg->exec() != TQDialog::Accepted )
       return;
   }
@@ -315,7 +315,7 @@ void CAutostart::setStartOn( int index ) {
 }
 
 void CAutostart::selectionChanged(TQListViewItem* entry) {
-  cmbStartOn->setEnabled( (entry != 0) );
+  cmbStartOn->setEnabled( (entry != nullptr) );
   cmbStartOn->setCurrentItem( ((CDesktopItem*)entry)->iStartOn );
 }
 
diff --git a/src/autostart.h b/src/autostart.h
index 4d205a6..3e63e15 100644
--- a/src/autostart.h
+++ b/src/autostart.h
@@ -37,7 +37,7 @@ class CAutostart: public TDECModule
   TQ_OBJECT
 
 public:
-  CAutostart( TQWidget *parent=0, const char *name=0, const TQStringList& = TQStringList() );
+  CAutostart( TQWidget *parent=nullptr, const char *name=nullptr, const TQStringList& = TQStringList() );
   ~CAutostart();
 
   virtual void load();
-- 
cgit v1.2.3

