From 4c768d103c30d216aad628a14046f1e5ab8e4bf4 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sun, 4 Oct 2026 06:48:38 -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/autotraceformats.h |  2 +-
 src/main.cpp           |  8 ++++----
 src/mainwidget.cpp     | 12 ++++++------
 src/mainwidget.h       |  2 +-
 src/potracegui.cpp     |  2 +-
 5 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/autotraceformats.h b/src/autotraceformats.h
index ef1f24f..05bfcfc 100644
--- a/src/autotraceformats.h
+++ b/src/autotraceformats.h
@@ -38,7 +38,7 @@ public:
  	 * \param parent The parent of the TQObject
 	 * \param name The name of the TQObject
 	 */
-	AutotraceFormats(TQObject *parent = 0, const char *name = 0);
+	AutotraceFormats(TQObject *parent = nullptr, const char *name = nullptr);
 	//!Returns the list of supported input formats
 	/** This class returns the list of formats returned by <code>autotrace -list-input-formats</code>
 	 * \return The supported formats
diff --git a/src/main.cpp b/src/main.cpp
index 6ff31b5..d66256d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -30,20 +30,20 @@ static const char description[] =
 
 static TDECmdLineOptions options[] =
 {
-   { "+[URL]", I18N_NOOP( "Document to open" ), 0 },
+   { "+[URL]", I18N_NOOP( "Document to open" ), nullptr },
     TDECmdLineLastOption
 };
 
 int main(int argc, char **argv)
 {
     TDEAboutData about("potracegui", I18N_NOOP("potracegui"), "1.3", description,
-                     TDEAboutData::License_GPL, "(C) 2004 Antonio Fasolato", 0, 0, "Antonio.Fasolato@poste.it");
-    about.addAuthor( "Antonio Fasolato", 0, "Antonio.Fasolato@poste.it" );
+                     TDEAboutData::License_GPL, "(C) 2004 Antonio Fasolato", nullptr, nullptr, "Antonio.Fasolato@poste.it");
+    about.addAuthor( "Antonio Fasolato", nullptr, "Antonio.Fasolato@poste.it" );
 	 about.addCredit( "Tim Fechtner", I18N_NOOP("German translation"), "Tim.Fechtner@gmx.de");
     TDECmdLineArgs::init(argc, argv, &about);
     TDECmdLineArgs::addCmdLineOptions( options );
     TDEApplication app;
-    potracegui *firstWidget = 0;
+    potracegui *firstWidget = nullptr;
 	 
 	TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
 
diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp
index 1616a68..20ec271 100644
--- a/src/mainwidget.cpp
+++ b/src/mainwidget.cpp
@@ -199,7 +199,7 @@ void MainWidget::fileSave() {
 }
 
 void MainWidget::fileSaveAs() {
-  if(previewLabel->pixmap()!=0 || previewLabel->text()!="")
+  if(previewLabel->pixmap() || previewLabel->text()!="")
   {
 	  TQString filter;
 	  if(backendCombo->currentText()=="potrace") {      //potrace formats
@@ -284,7 +284,7 @@ void MainWidget::fileClose() {
 }
 
 void MainWidget::cut() {
-  if(originalLabel->pixmap()!=0)
+  if(originalLabel->pixmap())
   {
     TQApplication::clipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap())));
     fileClose();
@@ -292,7 +292,7 @@ void MainWidget::cut() {
 }
 
 void MainWidget::copy() {
-  if(originalLabel->pixmap()!=0)
+  if(originalLabel->pixmap())
   {
     TQApplication::clipboard()->setPixmap(TQPixmap(*(originalLabel->pixmap())));
   }
@@ -330,7 +330,7 @@ void MainWidget::paste() {
     m_state.clear();
     m_oldPreviews.clear();
     m_state.push_back(o);
-    if(previewLabel->pixmap()!=0)
+    if(previewLabel->pixmap())
       m_oldPreviews.push_back(*(previewLabel->pixmap()));
     else
       m_oldPreviews.push_back(TQPixmap());
@@ -383,7 +383,7 @@ void MainWidget::getImageFromURL(KURL url) {
   m_state.clear();
   m_oldPreviews.clear();
   m_state.push_back(o);
-  if(previewLabel->pixmap()!=0)
+  if(previewLabel->pixmap())
     m_oldPreviews.push_back(*(previewLabel->pixmap()));
   else
     m_oldPreviews.push_back(TQPixmap());
@@ -833,7 +833,7 @@ TQStringList MainWidget::createAutotraceCommandLine( ) {
 }
 
 void MainWidget::trace() {
-  if(originalLabel->pixmap()==0)
+  if(!originalLabel->pixmap())
   {
     emit(signalChangeStatusbar(i18n("You must open an image first.")));
     return;
diff --git a/src/mainwidget.h b/src/mainwidget.h
index fb8b997..9c66fcd 100644
--- a/src/mainwidget.h
+++ b/src/mainwidget.h
@@ -55,7 +55,7 @@ class MainWidget : public MainWidgetBase
   
 public:
 	//! Default constructor (all parameters are simply passed to MainWidgetBase)
-	MainWidget(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+	MainWidget(TQWidget* parent = nullptr, const char* name = nullptr, WFlags fl = 0 );
 	//! Default destructor
 	~MainWidget();
 
diff --git a/src/potracegui.cpp b/src/potracegui.cpp
index 0514e94..21e7b3d 100644
--- a/src/potracegui.cpp
+++ b/src/potracegui.cpp
@@ -40,7 +40,7 @@
 #include <tdemessagebox.h>
 
 potracegui::potracegui()
-    : TDEMainWindow( 0, "potracegui" ), m_centralWidget(new MainWidget(this))
+    : TDEMainWindow( nullptr, "potracegui" ), m_centralWidget(new MainWidget(this))
 {
 	// set the shell's ui resource file
 	setXMLFile("potraceguiui.rc");
-- 
cgit v1.2.3

