From 5c37cccd8fd35348ebd10605070490c7efeb934b Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sat, 3 Oct 2026 17:47:40 -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/cassembler.cpp    | 2 +-
 src/codeeditor.cpp    | 2 +-
 src/codeeditor.h      | 2 +-
 src/kexportdialog.h   | 2 +-
 src/kpicosim.cpp      | 8 ++++----
 src/kportview.h       | 2 +-
 src/kprocessorview.h  | 2 +-
 src/kscratchpadview.h | 2 +-
 src/ksimulator.h      | 2 +-
 src/main.cpp          | 6 +++---
 10 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/cassembler.cpp b/src/cassembler.cpp
index 212a405..bacaff5 100644
--- a/src/cassembler.cpp
+++ b/src/cassembler.cpp
@@ -32,7 +32,7 @@ string toUpper( string str )
 
 CAssembler::CAssembler()
 {
-	m_messageList = 0 ;
+	m_messageList = nullptr ;
 }
 
 CAssembler::~CAssembler()
diff --git a/src/codeeditor.cpp b/src/codeeditor.cpp
index 77db160..a3c69c0 100644
--- a/src/codeeditor.cpp
+++ b/src/codeeditor.cpp
@@ -31,7 +31,7 @@ CodeEditor::CodeEditor(TQWidget *parent, const char *name)
 	TQVBoxLayout *layout = new TQVBoxLayout(this) ;
 		
 	KLibFactory *factory = KLibLoader::self()->factory( "libkatepart" ) ;
-	m_doc =  ( Kate::Document* ) factory->create( 0L, "kate", "KTextEditor::Document" ) ;
+	m_doc =  ( Kate::Document* ) factory->create( nullptr, "kate", "KTextEditor::Document" ) ;
 	m_view = ( Kate::View * ) m_doc->createView( this ) ;
 	m_view->setIconBorder( true ) ;
 
diff --git a/src/codeeditor.h b/src/codeeditor.h
index db7b226..1597e56 100644
--- a/src/codeeditor.h
+++ b/src/codeeditor.h
@@ -30,7 +30,7 @@ class CodeEditor : public TQWidget
 	TQ_OBJECT
   
 	public:
-    	CodeEditor(TQWidget *parent = 0, const char *name = 0);
+    	CodeEditor(TQWidget *parent = nullptr, const char *name = nullptr);
     	~CodeEditor();
 
 		void clearExecutionMarker() ;
diff --git a/src/kexportdialog.h b/src/kexportdialog.h
index df6e800..620e6b1 100644
--- a/src/kexportdialog.h
+++ b/src/kexportdialog.h
@@ -32,7 +32,7 @@ class KExportDialog : public TQDialog
 	TQ_OBJECT
   
 	public:
-    	KExportDialog(TQWidget *parent = 0, const char *name = 0 );
+    	KExportDialog(TQWidget *parent = nullptr, const char *name = nullptr );
     	~KExportDialog();
 	
 		void setOutputDir( TQString dir ) ;
diff --git a/src/kpicosim.cpp b/src/kpicosim.cpp
index f613ef4..eb06bb8 100644
--- a/src/kpicosim.cpp
+++ b/src/kpicosim.cpp
@@ -99,7 +99,7 @@ enum IDs {
 } ;
 
 
-KPicoSim::KPicoSim() : TDEMainWindow( 0, "KPicoSim" )
+KPicoSim::KPicoSim() : TDEMainWindow( nullptr, "KPicoSim" )
 {
 //	set the shell's ui resource file
 //	setXMLFile("kpicosimui.rc");
@@ -239,8 +239,8 @@ void KPicoSim::buildMenu()
 		version, 
 		"IDE for the picoblaze\n\nCopyright (c) 2005 Mark Six", 
 		TDEAboutData::License_GPL,
-		0,
-		0,
+		nullptr,
+		nullptr,
 		"http://www.xs4all.nl/~marksix",
 		"m6@xs4all.nl"
 	 ) ;
@@ -364,7 +364,7 @@ void KPicoSim::closeEvent( TQCloseEvent * e )
 
 void KPicoSim::newIOPort()
 {	
-	KPortView * ioport = new KPortView( m_simulator->getCpu(), 0 ) ;			/* port id is 0 */
+	KPortView * ioport = new KPortView( m_simulator->getCpu(), nullptr ) ;			/* port id is 0 */
 //	m_ioList.append( ioport ) ;
 	addDockWindow( ioport, DockRight ) ;
 //	connect( ioport, TQ_SIGNAL( closing( KPortView* ) ), this, TQ_SLOT( removeIOPort( KPortView* ) ) ) ;
diff --git a/src/kportview.h b/src/kportview.h
index 11d75d5..4f4e989 100644
--- a/src/kportview.h
+++ b/src/kportview.h
@@ -31,7 +31,7 @@ class KPortView : public TDEToolBar
 	TQ_OBJECT
   
 	public:
-    	KPortView( CPicoBlaze *cpu, TQWidget *parent = 0, const char *name = 0);
+    	KPortView( CPicoBlaze *cpu, TQWidget *parent = nullptr, const char *name = nullptr);
 	   	~KPortView();
 		
 		KPort	* m_port ;
diff --git a/src/kprocessorview.h b/src/kprocessorview.h
index 84f105a..8574c6d 100644
--- a/src/kprocessorview.h
+++ b/src/kprocessorview.h
@@ -32,7 +32,7 @@ class TDEProcessorView : public TDEToolBar
 	TQ_OBJECT
   
 	public:
-    	TDEProcessorView(TQWidget *parent = 0, const char *name = 0);
+    	TDEProcessorView(TQWidget *parent = nullptr, const char *name = nullptr);
     	~TDEProcessorView();
 	
 		void setRegisterValues( unsigned char *values ) ;
diff --git a/src/kscratchpadview.h b/src/kscratchpadview.h
index d4de8bd..013ac13 100644
--- a/src/kscratchpadview.h
+++ b/src/kscratchpadview.h
@@ -28,7 +28,7 @@ class KScratchpadView : public TDEToolBar
 	TQ_OBJECT
   
 	public:
-    	KScratchpadView(TQWidget *parent = 0, const char *name = 0);
+    	KScratchpadView(TQWidget *parent = nullptr, const char *name = nullptr);
     	~KScratchpadView();
 		
 		void setContent( unsigned char *values, unsigned int len ) ;
diff --git a/src/ksimulator.h b/src/ksimulator.h
index 8a4a3b3..7ae3a30 100644
--- a/src/ksimulator.h
+++ b/src/ksimulator.h
@@ -39,7 +39,7 @@ class KSimulator : public TQObject
 	TQ_OBJECT
   
 	public:
-    	KSimulator(TQObject *parent = 0, const char *name = 0);
+    	KSimulator(TQObject *parent = nullptr, const char *name = nullptr);
 	   	~KSimulator();
 		
 		void setFilename( string filename ) { m_assembler->setFilename(  filename  ) ; }				
diff --git a/src/main.cpp b/src/main.cpp
index 104c6d2..36e7022 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -39,12 +39,12 @@ static TDECmdLineOptions options[] =
 int main(int argc, char **argv)
 {
     TDEAboutData about("kpicosim", I18N_NOOP("KPicoSim"), version, description,
-		     TDEAboutData::License_GPL, "(C) %{YEAR} Mark Six", 0, 0, "m6@xs4all.nl");
-    about.addAuthor( "Mark Six", 0, "m6@xs4all.nl" );
+		     TDEAboutData::License_GPL, "(C) %{YEAR} Mark Six", nullptr, nullptr, "m6@xs4all.nl");
+    about.addAuthor( "Mark Six", nullptr, "m6@xs4all.nl" );
     TDECmdLineArgs::init(argc, argv, &about);
     TDECmdLineArgs::addCmdLineOptions( options );
     TDEApplication app;
-    KPicoSim *mainWin = 0;
+    KPicoSim *mainWin = nullptr;
 
     if (app.isRestored())
     {
-- 
cgit v1.2.3

