From cb795d37d3883d317fad5df6ef5a31f63c98bb8d Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sun, 20 Sep 2026 20:18:58 -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>
---
 krename/ProgressDialog.cpp    |  4 ++--
 krename/ProgressDialog.h      |  2 +-
 krename/batchrenamer.cpp      |  2 +-
 krename/commandplugin.cpp     |  6 +++---
 krename/confdialog.h          |  2 +-
 krename/coorddialog.h         |  4 ++--
 krename/dateplugin.cpp        |  4 ++--
 krename/datetime.cpp          |  6 +++---
 krename/dsdirselectdialog.cpp |  2 +-
 krename/fileoperation.cpp     |  4 ++--
 krename/fileplugin.cpp        |  2 +-
 krename/firststartdlg.h       |  2 +-
 krename/guimodeselector.cpp   |  2 +-
 krename/helpdialog.cpp        |  2 +-
 krename/helpdialog.h          |  4 ++--
 krename/kmyhistorycombo.h     |  2 +-
 krename/kmylistbox.cpp        |  4 ++--
 krename/kmylistbox.h          |  2 +-
 krename/kmylistview.h         |  2 +-
 krename/krecursivelister.cpp  |  4 ++--
 krename/krecursivelister.h    |  2 +-
 krename/krenameimpl.cpp       | 16 ++++++++--------
 krename/krenameimpl.h         |  2 +-
 krename/main.cpp              | 22 +++++++++++-----------
 krename/mydirplugin.cpp       |  4 ++--
 krename/myinputdialog.cpp     |  4 ++--
 krename/myinputdialog.h       |  2 +-
 krename/numberdialog.cpp      |  4 ++--
 krename/numberdialog.h        |  2 +-
 krename/permission.cpp        | 18 +++++++++---------
 krename/pictureplugin.cpp     |  2 +-
 krename/profiledlg.cpp        |  4 ++--
 krename/profiledlg.h          |  2 +-
 krename/replacedialog.cpp     |  2 +-
 krename/replacedialog.h       |  2 +-
 krename/tabs.cpp              |  2 +-
 krename/tabs.h                |  2 +-
 krename/undodialog.cpp        |  2 +-
 krename/undodialog.h          |  2 +-
 krename/wizard.h              |  2 +-
 40 files changed, 80 insertions(+), 80 deletions(-)

diff --git a/krename/ProgressDialog.cpp b/krename/ProgressDialog.cpp
index 13f566e..ece6672 100644
--- a/krename/ProgressDialog.cpp
+++ b/krename/ProgressDialog.cpp
@@ -54,8 +54,8 @@ ProgressDialog::ProgressDialog( TQWidget* parent, const char* name, WFlags fl )
     setIcon( BarIcon( "krename" ) );
 
     ProgressDialogLayout = new TQVBoxLayout( this, 11, 6 );
-    Layout1 = new TQHBoxLayout( 0, 0, 6 );
-    TQHBoxLayout* Layout2 = new TQHBoxLayout( 0, 6, 6 );
+    Layout1 = new TQHBoxLayout( nullptr, 0, 6 );
+    TQHBoxLayout* Layout2 = new TQHBoxLayout( nullptr, 6, 6 );
 
     bar = new TQProgressBar( this );
     bar->setProgress( 0 );
diff --git a/krename/ProgressDialog.h b/krename/ProgressDialog.h
index c9c5498..3416788 100644
--- a/krename/ProgressDialog.h
+++ b/krename/ProgressDialog.h
@@ -46,7 +46,7 @@ class ProgressDialog : public TQWidget
     TQ_OBJECT
   
     public:
-        ProgressDialog( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+        ProgressDialog( TQWidget* parent = nullptr, const char* name = nullptr, WFlags fl = 0 );
         ~ProgressDialog();
 
         void setProgressTotalSteps( int t );
diff --git a/krename/batchrenamer.cpp b/krename/batchrenamer.cpp
index 62d1304..db0c62a 100644
--- a/krename/batchrenamer.cpp
+++ b/krename/batchrenamer.cpp
@@ -849,7 +849,7 @@ void BatchRenamer::parseSubdirs( data* f )
             // to support dirnames containing "&" or 
             // similar tokens
             url.addPath( unEscape( d ) );
-            if (!NetAccess::exists(url, false, 0) && !NetAccess::mkdir(url, 0, -1))
+            if (!NetAccess::exists(url, false, nullptr) && !NetAccess::mkdir(url, nullptr, -1))
                 // TODO: GUI bug report
                 tqDebug("Can't create %s", url.prettyURL().latin1() ); 
 
diff --git a/krename/commandplugin.cpp b/krename/commandplugin.cpp
index dcff215..c1c239c 100644
--- a/krename/commandplugin.cpp
+++ b/krename/commandplugin.cpp
@@ -51,7 +51,7 @@ const int CommandPlugin::type() const
 bool CommandPlugin::checkError()
 {
     if( commandline->text().isEmpty() ) {
-        KMessageBox::error( 0, i18n("You did not specify a command to execute.") );
+        KMessageBox::error( nullptr, i18n("You did not specify a command to execute.") );
         return false;
     }
 
@@ -62,8 +62,8 @@ void CommandPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
 {
     m_widget = w;
 
-    TQHBoxLayout* hb = new TQHBoxLayout( 0, 0, 6 );
-    TQVBoxLayout* vb = new TQVBoxLayout( 0, 0, 6 );
+    TQHBoxLayout* hb = new TQHBoxLayout( nullptr, 0, 6 );
+    TQVBoxLayout* vb = new TQVBoxLayout( nullptr, 0, 6 );
 
     TQLabel* la = new TQLabel( w );
     la->setText( i18n("<b>Command Plugin</b>") );
diff --git a/krename/confdialog.h b/krename/confdialog.h
index 92e88ab..59c3bfe 100644
--- a/krename/confdialog.h
+++ b/krename/confdialog.h
@@ -35,7 +35,7 @@ class ConfDialog : public KDialogBase, public GUIModeSelector {
     TQ_OBJECT
   
     public:
-        ConfDialog( TQWidget* parent = 0, const char* name = 0 );
+        ConfDialog( TQWidget* parent = nullptr, const char* name = nullptr );
         ~ConfDialog();
 
         inline bool loadplugins() const { return checkPlugins->isChecked(); }
diff --git a/krename/coorddialog.h b/krename/coorddialog.h
index 746312e..d71f0d2 100644
--- a/krename/coorddialog.h
+++ b/krename/coorddialog.h
@@ -26,7 +26,7 @@ class DSLineEdit : public KLineEdit {
     TQ_OBJECT
   
     public:
-        DSLineEdit( TQWidget* parent = 0, const char* name = 0 );
+        DSLineEdit( TQWidget* parent = nullptr, const char* name = nullptr );
 
     signals:
         void changed();
@@ -49,7 +49,7 @@ class CoordDialog : public KDialogBase  {
     TQ_OBJECT
   
     public: 
-        CoordDialog( const TQString & file, TQWidget *_parent=0, const char *name=0);
+        CoordDialog( const TQString & file, TQWidget *_parent=nullptr, const char *name=nullptr);
         ~CoordDialog();
 
         TQString coords();
diff --git a/krename/dateplugin.cpp b/krename/dateplugin.cpp
index 99c520a..0000f8f 100644
--- a/krename/dateplugin.cpp
+++ b/krename/dateplugin.cpp
@@ -25,7 +25,7 @@
 #include <tdelocale.h>
 
 DatePlugin::DatePlugin()
- : FilePlugin(0)
+ : FilePlugin(nullptr)
 {
     keys.append("date");
     keys.append("date;.*");
@@ -88,7 +88,7 @@ TQString DatePlugin::processFile(BatchRenamer* b, int i, TQString token, int )
         return tmp.sprintf("%0*i", 2, t.second() );
     else {
         TDEIO::UDSEntry entry;
-        TDEIO::NetAccess::stat(b->files()[i].src.url, entry, 0);
+        TDEIO::NetAccess::stat(b->files()[i].src.url, entry, nullptr);
         KFileItem item( entry, b->files()[i].src.url );
         if( token == "user" )
             return item.user();
diff --git a/krename/datetime.cpp b/krename/datetime.cpp
index f6717de..0815c9e 100644
--- a/krename/datetime.cpp
+++ b/krename/datetime.cpp
@@ -71,9 +71,9 @@ void MyDatePlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
 #ifdef BENNY
     l->addWidget( new TQLabel("Setze Modifiaction Time um eine Stunde zurück", w) );
 #else
-    Layout0 = new TQHBoxLayout( 0, 0, 6, "Layout0");
-    Layout1 = new TQVBoxLayout( 0, 0, 6, "Layout1");
-    Layout2 = new TQHBoxLayout( 0, 0, 6, "Layout2");
+    Layout0 = new TQHBoxLayout( nullptr, 0, 6, "Layout0");
+    Layout1 = new TQVBoxLayout( nullptr, 0, 6, "Layout1");
+    Layout2 = new TQHBoxLayout( nullptr, 0, 6, "Layout2");
 
     kDate = new KDatePicker( w );
 
diff --git a/krename/dsdirselectdialog.cpp b/krename/dsdirselectdialog.cpp
index 8724f3f..85db1a5 100644
--- a/krename/dsdirselectdialog.cpp
+++ b/krename/dsdirselectdialog.cpp
@@ -31,7 +31,7 @@
 #include <kurlcombobox.h> 
 
 DSDirSelectDialog::DSDirSelectDialog( TQWidget* parent )
-        : KFileDialog( ":KRename", "*", parent, 0, false ) 
+        : KFileDialog( ":KRename", "*", parent, nullptr, false )
 {
     setOperationMode( KFileDialog::Opening );
     setMode( KFile::Files | KFile::ExistingOnly );
diff --git a/krename/fileoperation.cpp b/krename/fileoperation.cpp
index 05bc8c0..03a4c76 100644
--- a/krename/fileoperation.cpp
+++ b/krename/fileoperation.cpp
@@ -54,7 +54,7 @@ bool FileOperation::start( const KURL & src, const KURL & dest, int mode, bool o
         return false;
     }
     
-    Job* job = 0;
+    Job* job = nullptr;
     switch( mode ) {
         case RENAME:
         case MOVE:
@@ -82,7 +82,7 @@ bool FileOperation::start( const KURL & src, const KURL & dest, int mode, bool o
     if( !job )
         return false;
         
-    job->setAutoErrorHandlingEnabled( false, 0 );
+    job->setAutoErrorHandlingEnabled( false, nullptr );
     connect( job, TQ_SIGNAL( result (TDEIO::Job *) ),
            this, TQ_SLOT( slotResult (TDEIO::Job *) ) );
 
diff --git a/krename/fileplugin.cpp b/krename/fileplugin.cpp
index 6ad8b70..4b78ba8 100644
--- a/krename/fileplugin.cpp
+++ b/krename/fileplugin.cpp
@@ -126,7 +126,7 @@ void FilePlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
 {
     TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Expanding );
     
-    TQHBoxLayout* hbox = new TQHBoxLayout( 0, 6, 6 );
+    TQHBoxLayout* hbox = new TQHBoxLayout( nullptr, 6, 6 );
     
     TQLabel* pix = new TQLabel( w );
     pix->setPixmap( tdeApp->iconLoader()->loadIcon( m_icon, TDEIcon::Desktop ) );
diff --git a/krename/firststartdlg.h b/krename/firststartdlg.h
index b95ae58..cbd6b86 100644
--- a/krename/firststartdlg.h
+++ b/krename/firststartdlg.h
@@ -26,7 +26,7 @@ class FirstStartDlg : public KDialogBase, public GUIModeSelector {
     TQ_OBJECT
   
     public: 
-        FirstStartDlg(TQWidget *parent=0, const char *name=0);
+        FirstStartDlg(TQWidget *parent=nullptr, const char *name=nullptr);
         ~FirstStartDlg();
 };
 
diff --git a/krename/guimodeselector.cpp b/krename/guimodeselector.cpp
index 5b772e3..7ae23d8 100644
--- a/krename/guimodeselector.cpp
+++ b/krename/guimodeselector.cpp
@@ -29,7 +29,7 @@
 
 GUIModeSelector::GUIModeSelector()
 {
-    optionWizard = optionTabs = 0;
+    optionWizard = optionTabs = nullptr;
 }
 
 GUIModeSelector::~GUIModeSelector()
diff --git a/krename/helpdialog.cpp b/krename/helpdialog.cpp
index bc7b732..45fd16a 100644
--- a/krename/helpdialog.cpp
+++ b/krename/helpdialog.cpp
@@ -82,7 +82,7 @@ HelpDialog::HelpDialog( HelpDialogData* data, TQWidget* parent,
     list->addColumn( i18n( "Description" ) );
     HelpDialogLayout->addWidget( list );
 
-    Layout1 = new TQHBoxLayout( 0, 0, 6, "Layout1"); 
+    Layout1 = new TQHBoxLayout( nullptr, 0, 6, "Layout1");
     TQSpacerItem* spacer = new TQSpacerItem( 91, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
     Layout1->addItem( spacer );
 
diff --git a/krename/helpdialog.h b/krename/helpdialog.h
index d15301e..d28d6fc 100644
--- a/krename/helpdialog.h
+++ b/krename/helpdialog.h
@@ -77,8 +77,8 @@ class HelpDialog : public TQDialog
     TQ_OBJECT
   
     public:
-        HelpDialog( HelpDialogData* data, TQWidget* parent = 0,
-            const char* name = 0, bool modal = false, WFlags fl = 0 );
+        HelpDialog( HelpDialogData* data, TQWidget* parent = nullptr,
+            const char* name = nullptr, bool modal = false, WFlags fl = 0 );
         ~HelpDialog();
 
         inline void setLineEdit( TQLineEdit* lineedit );
diff --git a/krename/kmyhistorycombo.h b/krename/kmyhistorycombo.h
index 9a5cacc..5da319f 100644
--- a/krename/kmyhistorycombo.h
+++ b/krename/kmyhistorycombo.h
@@ -34,7 +34,7 @@ class KMyHistoryCombo : public KHistoryCombo  {
          *
          *  \param customPopup insert custom menu items into context menu.
          */
-        KMyHistoryCombo(bool customPopup, TQWidget* parent=0, const char* name=0);
+        KMyHistoryCombo(bool customPopup, TQWidget* parent=nullptr, const char* name=nullptr);
         ~KMyHistoryCombo();
 
         /**
diff --git a/krename/kmylistbox.cpp b/krename/kmylistbox.cpp
index 09d7cde..9eef90a 100644
--- a/krename/kmylistbox.cpp
+++ b/krename/kmylistbox.cpp
@@ -117,7 +117,7 @@ bool KMyListBox::isFile( const KURL & f, bool autoadd )
 {
     UDSEntry entry;
 
-    NetAccess::stat(f, entry, 0);
+    NetAccess::stat(f, entry, nullptr);
     KFileItem file( entry, f );
     if( !file.isReadable() )
         return false;
@@ -334,7 +334,7 @@ void KMyListBox::select( TQListBoxItem* item )
 
 void KMyListBox::preview( KURL::List list )
 {
-    TDEIO::PreviewJob* job = TDEIO::filePreview( list, previewSize, previewSize, 0, 100, false, true, 0 );
+    TDEIO::PreviewJob* job = TDEIO::filePreview( list, previewSize, previewSize, 0, 100, false, true, nullptr );
     connect( job, TQ_SIGNAL( gotPreview( const KFileItem*, const TQPixmap &) ), this, TQ_SLOT( previewDone( const KFileItem*, const TQPixmap &) ) );
     connect( job, TQ_SIGNAL( failed( const KFileItem*)), this, TQ_SLOT( previewFailed( const KFileItem* ) ));
     connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( previewFinished() ) );
diff --git a/krename/kmylistbox.h b/krename/kmylistbox.h
index 1de4738..b348a45 100644
--- a/krename/kmylistbox.h
+++ b/krename/kmylistbox.h
@@ -41,7 +41,7 @@ class KMyListBox : public TDEListBox  {
     public:
         enum { ASCENDING = 1, DESCENDING = 2, RANDOM = 3, NUMMERIC = 4, UNSORTED = 0 };
 
-        KMyListBox(TQWidget* parent=0, const char* name=0, WFlags fl=0);
+        KMyListBox(TQWidget* parent=nullptr, const char* name=nullptr, WFlags fl=0);
         ~KMyListBox();
 
         void removeItem( int index );
diff --git a/krename/kmylistview.h b/krename/kmylistview.h
index 291368f..200dd69 100644
--- a/krename/kmylistview.h
+++ b/krename/kmylistview.h
@@ -28,7 +28,7 @@ class KMyListView : public TDEListView  {
     TQ_OBJECT
   
     public:
-        KMyListView( TQValueList<manualchanges>* _changes, KMyListBox* _list, TQWidget* parent=0, const char* name=0 );
+        KMyListView( TQValueList<manualchanges>* _changes, KMyListBox* _list, TQWidget* parent=nullptr, const char* name=nullptr );
         ~KMyListView();
 
     signals:
diff --git a/krename/krecursivelister.cpp b/krename/krecursivelister.cpp
index bae90a9..f2167ee 100644
--- a/krename/krecursivelister.cpp
+++ b/krename/krecursivelister.cpp
@@ -20,7 +20,7 @@
 #include "krecursivelister.h"
 
 KRecursiveLister::KRecursiveLister(TQObject *parent, const char *name ) : TQObject(parent,name) {
-    lister = 0L;
+    lister = nullptr;
     filelist.clear();
     dirlist.clear();
     dirtree.clear();
@@ -57,7 +57,7 @@ void KRecursiveLister::slotListingComplete(){
 
     KFileItem * item;
     KFileItem * newitem;
-    for( item = templist.first(); item != 0; item=templist.next() )
+    for( item = templist.first(); item != nullptr; item=templist.next() )
     {
         if (item->isDir()) {
             newitem= new KFileItem(*item);
diff --git a/krename/krecursivelister.h b/krename/krecursivelister.h
index a6af624..2c3e5a8 100644
--- a/krename/krecursivelister.h
+++ b/krename/krecursivelister.h
@@ -37,7 +37,7 @@ class KRecursiveLister : public TQObject  {
   
 
 public:
-	KRecursiveLister(TQObject *parent=0, const char *name=0);
+	KRecursiveLister(TQObject *parent=nullptr, const char *name=nullptr);
 	~KRecursiveLister();
 
 	/** Returns the list of fileitems found. */
diff --git a/krename/krenameimpl.cpp b/krename/krenameimpl.cpp
index c99fc4e..dd22789 100644
--- a/krename/krenameimpl.cpp
+++ b/krename/krenameimpl.cpp
@@ -335,9 +335,9 @@ void KRenameImpl::setupPage1()
     page_1 = new TQWidget( parent );
 
     pageLayout = new TQHBoxLayout( page_1, 11, 6 );
-    Layout3 = new TQVBoxLayout( 0, 0, 6 );
-    Layout4 = new TQHBoxLayout( 0, 0, 6 );
-    Layout5 = new TQVBoxLayout( 0, 0, 6 );
+    Layout3 = new TQVBoxLayout( nullptr, 0, 6 );
+    Layout4 = new TQHBoxLayout( nullptr, 0, 6 );
+    Layout5 = new TQVBoxLayout( nullptr, 0, 6 );
 
     TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
     TQSpacerItem* spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
@@ -499,8 +499,8 @@ void KRenameImpl::setupPage4()
     setupFileTab1();
     setupFileTab2();
     
-    Layout22 = new TQHBoxLayout( 0, 0, 6 );
-    Layout23 = new TQVBoxLayout( 0, 0, 6 );
+    Layout22 = new TQHBoxLayout( nullptr, 0, 6 );
+    Layout23 = new TQVBoxLayout( nullptr, 0, 6 );
     
     preview = new KMyListView( &changes, fileList, page_4 );
     preview->setSorting( -1 );
@@ -620,9 +620,9 @@ void KRenameImpl::setupFileTab1()
     TQSpacerItem* spacer_9 = new TQSpacerItem( 200, 20, TQSizePolicy::Maximum, TQSizePolicy::Maximum );
 
     TQVBoxLayout* layout = new TQVBoxLayout( tab );
-    TQHBoxLayout* Layout1 = new TQHBoxLayout( 0, 6, 6 );
-    TQHBoxLayout* Layout2 = new TQHBoxLayout( 0, 6, 6 );
-    TQHBoxLayout* ExtensionLayout = new TQHBoxLayout( 0, 6, 6 );
+    TQHBoxLayout* Layout1 = new TQHBoxLayout( nullptr, 6, 6 );
+    TQHBoxLayout* Layout2 = new TQHBoxLayout( nullptr, 6, 6 );
+    TQHBoxLayout* ExtensionLayout = new TQHBoxLayout( nullptr, 6, 6 );
     
     Layout1->addWidget( labelTemplate );
     Layout1->addWidget( filename );
diff --git a/krename/krenameimpl.h b/krename/krenameimpl.h
index 330df88..277ddd2 100644
--- a/krename/krenameimpl.h
+++ b/krename/krenameimpl.h
@@ -83,7 +83,7 @@ class KRenameImpl : public TQObject, public KRenameDCOP {
 
         void setup( bool wizardmode );
         void changeParent( TQWidget* p, KMenuBar* m, TQPushButton* finish, TQRect r );
-        static TQWidget* launch( TQRect rect, const KURL::List & list, KRenameImpl* impl = 0, bool loadprofile = true );
+        static TQWidget* launch( TQRect rect, const KURL::List & list, KRenameImpl* impl = nullptr, bool loadprofile = true );
 
         /** DCOP functions we have to implement
           */
diff --git a/krename/main.cpp b/krename/main.cpp
index 04b1218..fb8eeae 100644
--- a/krename/main.cpp
+++ b/krename/main.cpp
@@ -59,22 +59,22 @@ TDEAboutData aboutData( "krename", I18N_NOOP("KRename"), VERSION, I18N_NOOP(
 
 static TDECmdLineOptions options[] =
 {
-    { "+[file]", I18N_NOOP("file will be added to the list of files for renaming"), 0},
-    { "r +[dir]", I18N_NOOP("add directory recursively"), 0 },
-    { "template +", I18N_NOOP("set a template"), 0 },
-    { "extension +", I18N_NOOP("set a template for the file extension"), 0 },
-    { "use-plugin +", I18N_NOOP("enable a plugin for use"), 0 },
-    { "copy +[dir]", I18N_NOOP("copy files to directory"), 0 },
-    { "move +[dir]", I18N_NOOP("move files to directory"), 0 },
-    { "profile +[profile]", I18N_NOOP("load the profile named [profile] on startup"), 0 },
-    { "start", I18N_NOOP("start renaming immediately"), 0 },
-    { "previewitems <num>",  I18N_NOOP("only show <num> preview items"), 0 },
+    { "+[file]", I18N_NOOP("file will be added to the list of files for renaming"), nullptr},
+    { "r +[dir]", I18N_NOOP("add directory recursively"), nullptr },
+    { "template +", I18N_NOOP("set a template"), nullptr },
+    { "extension +", I18N_NOOP("set a template for the file extension"), nullptr },
+    { "use-plugin +", I18N_NOOP("enable a plugin for use"), nullptr },
+    { "copy +[dir]", I18N_NOOP("copy files to directory"), nullptr },
+    { "move +[dir]", I18N_NOOP("move files to directory"), nullptr },
+    { "profile +[profile]", I18N_NOOP("load the profile named [profile] on startup"), nullptr },
+    { "start", I18N_NOOP("start renaming immediately"), nullptr },
+    { "previewitems <num>",  I18N_NOOP("only show <num> preview items"), nullptr },
     TDECmdLineLastOption
 };
 
 int main(int argc, char *argv[])
 {
-    aboutData.addAuthor("Dominik Seichter", 0, "domseichter@web.de",
+    aboutData.addAuthor("Dominik Seichter", nullptr, "domseichter@web.de",
         "http://www.krename.net" );
     aboutData.addAuthor("Stefan \"Stonki\" Onken",
         I18N_NOOP("Website, testing, very good ideas and keeping me coding!"),
diff --git a/krename/mydirplugin.cpp b/krename/mydirplugin.cpp
index c681442..1a60986 100644
--- a/krename/mydirplugin.cpp
+++ b/krename/mydirplugin.cpp
@@ -62,8 +62,8 @@ void MyDirPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
     TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
     TQSpacerItem* spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
 
-    TQVBoxLayout* LayoutA = new TQVBoxLayout( 0, 6, 6 );
-    TQVBoxLayout* LayoutB = new TQVBoxLayout( 0, 6, 6 );
+    TQVBoxLayout* LayoutA = new TQVBoxLayout( nullptr, 6, 6 );
+    TQVBoxLayout* LayoutB = new TQVBoxLayout( nullptr, 6, 6 );
 
     m_widget = w;
 
diff --git a/krename/myinputdialog.cpp b/krename/myinputdialog.cpp
index 038c3d9..d08cc0d 100644
--- a/krename/myinputdialog.cpp
+++ b/krename/myinputdialog.cpp
@@ -25,13 +25,13 @@
 #include <tqtooltip.h>
 
 MyInputDialog::MyInputDialog( TQString filename, bool revertEnabled, TQWidget* parent )
-    : TQDialog( parent, 0, true, 0 )
+    : TQDialog( parent, nullptr, true, 0 )
 {
     // I do not think this has to be translated
     setCaption( "KRename" );
 
     MyInputDialogLayout = new TQVBoxLayout( this, 11, 6, "MyInputDialogLayout");
-    Layout = new TQHBoxLayout( 0, 0, 6, "Layout");
+    Layout = new TQHBoxLayout( nullptr, 0, 6, "Layout");
 
     TextLabel1 = new TQLabel( this, "TextLabel1" );
     TextLabel1->setText( i18n( "Please input a new filename:" ) );
diff --git a/krename/myinputdialog.h b/krename/myinputdialog.h
index be1dc2a..24c795d 100644
--- a/krename/myinputdialog.h
+++ b/krename/myinputdialog.h
@@ -32,7 +32,7 @@ class MyInputDialog : public TQDialog
     TQ_OBJECT
   
     public:
-        MyInputDialog( TQString filename, bool revertEnabled = true, TQWidget* parent = 0 );
+        MyInputDialog( TQString filename, bool revertEnabled = true, TQWidget* parent = nullptr );
         ~MyInputDialog();
 
         TQString filename() const;
diff --git a/krename/numberdialog.cpp b/krename/numberdialog.cpp
index c2f2b36..3d88cee 100644
--- a/krename/numberdialog.cpp
+++ b/krename/numberdialog.cpp
@@ -38,7 +38,7 @@ void KMyIntSpinBox::keyPressEvent( TQKeyEvent* e )
 
 NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
     : KDialogBase( KDialogBase::Plain, "KRename",
-      KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, parent, 0, true, true )
+      KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, parent, nullptr, true, true )
 {
     TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
 
@@ -85,7 +85,7 @@ NumberDialog::NumberDialog(TQValueList<int> & n,TQWidget *parent )
     spinNumber->setValue( 0 );
     spinNumber->setFocus();
 
-    TQVBoxLayout* layout2 = new TQVBoxLayout( 0, 6, 6 );
+    TQVBoxLayout* layout2 = new TQVBoxLayout( nullptr, 6, 6 );
     layout2->addWidget( buttonAdd );
     layout2->addWidget( buttonRemove );
     layout2->addWidget( spinNumber );
diff --git a/krename/numberdialog.h b/krename/numberdialog.h
index 967481d..9c5e995 100644
--- a/krename/numberdialog.h
+++ b/krename/numberdialog.h
@@ -48,7 +48,7 @@ class NumberDialog : public KDialogBase  {
    TQ_OBJECT
   
     public: 
-        NumberDialog(TQValueList<int> & n,TQWidget *parent=0);
+        NumberDialog(TQValueList<int> & n,TQWidget *parent=nullptr);
         ~NumberDialog();
 
 	// TODO: bad object oriented design!!!
diff --git a/krename/permission.cpp b/krename/permission.cpp
index 259c3ce..7085fde 100644
--- a/krename/permission.cpp
+++ b/krename/permission.cpp
@@ -73,7 +73,7 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
     l->setResizeMode( TQLayout::FreeResize );
     w->setMinimumSize( TQSize( 100, 100 ) );
     
-    Layout0 = new TQVBoxLayout( 0, 0, 6 );
+    Layout0 = new TQVBoxLayout( nullptr, 0, 6 );
 
     groupPermission = new TQGroupBox ( i18n("Access permissions"), w );
     groupPermission->setEnabled( false );
@@ -142,9 +142,9 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
     groupOwnerLayout = new TQVBoxLayout( groupOwner->layout() );
     groupOwnerLayout->setAlignment( TQt::AlignTop );
 
-    Layout2 = new TQHBoxLayout( 0, 0, 6 );
-    Layout3 = new TQHBoxLayout( 0, 0, 6 );
-    Layout4 = new TQHBoxLayout( 0, 0, 6 );
+    Layout2 = new TQHBoxLayout( nullptr, 0, 6 );
+    Layout3 = new TQHBoxLayout( nullptr, 0, 6 );
+    Layout4 = new TQHBoxLayout( nullptr, 0, 6 );
 
     la = new TQLabel( i18n("User:"), groupOwner );
     Layout2->addWidget( la );
@@ -155,7 +155,7 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
     uid = geteuid();
 
     setpwent();
-    for (i=0; ((user = getpwent()) != 0L) && (i < MAXENTRIES); i++) {
+    for (i=0; ((user = getpwent()) != nullptr) && (i < MAXENTRIES); i++) {
         if( uid == 0 )
             username->insertItem(TQString::fromLatin1(user->pw_name));
         else
@@ -169,14 +169,14 @@ void MyPermPlugin::drawInterface( TQWidget* w, TQVBoxLayout* l )
     TQString strUser = user->pw_name;
 
     setgrent();
-    for (i=0; ((ge = getgrent()) != 0L) && (i < MAXENTRIES); i++) {
+    for (i=0; ((ge = getgrent()) != nullptr) && (i < MAXENTRIES); i++) {
         if( uid == 0 ) {
             groupname->insertItem(TQString::fromLatin1(ge->gr_name));
         } else {
             char ** members = ge->gr_mem;
             char * member;
            
-            while ((member = *members) != 0L) {
+            while ((member = *members) != nullptr) {
                 if (strUser == member) {
                     groupname->insertItem(TQString::fromLatin1(ge->gr_name));
                     break;
@@ -294,7 +294,7 @@ int MyPermPlugin::getGid( TQString group )
     int i, r;
     struct group *ge;
     setgrent();
-    for (i=0; ((ge = getgrent()) != 0L) && (i < MAXENTRIES); i++)
+    for (i=0; ((ge = getgrent()) != nullptr) && (i < MAXENTRIES); i++)
         if (!strcmp(ge->gr_name, group.local8Bit()))
             break;
     r = ge->gr_gid;
@@ -307,7 +307,7 @@ int MyPermPlugin::getUid( TQString owner )
     int i, r;
     struct passwd *user;
     setpwent();
-    for (i=0; ((user = getpwent()) != 0L) && (i < MAXENTRIES); i++)
+    for (i=0; ((user = getpwent()) != nullptr) && (i < MAXENTRIES); i++)
         if (!strcmp(user->pw_name, owner.local8Bit()))
             break;
     r = user->pw_uid;
diff --git a/krename/pictureplugin.cpp b/krename/pictureplugin.cpp
index 98348f2..138398d 100644
--- a/krename/pictureplugin.cpp
+++ b/krename/pictureplugin.cpp
@@ -25,7 +25,7 @@
 #include <tdelocale.h>
 
 PicturePlugin::PicturePlugin()
-    : FilePlugin( 0 )
+    : FilePlugin( nullptr )
 {
     keys.append( "resolution" );
     keys.append( "xres" );
diff --git a/krename/profiledlg.cpp b/krename/profiledlg.cpp
index 500096a..2230c1b 100644
--- a/krename/profiledlg.cpp
+++ b/krename/profiledlg.cpp
@@ -398,7 +398,7 @@ ProfileDlg::ProfileDlg(KRenameImpl* krename, TQWidget *parent, const char *name)
     int i;
 
     TQHBoxLayout* layout = new TQHBoxLayout( plainPage(), 6, 6 );
-    TQVBoxLayout* button = new TQVBoxLayout( 0, 6, 6 );
+    TQVBoxLayout* button = new TQVBoxLayout( nullptr, 6, 6 );
     
     profiles = new TDEListBox( plainPage() );
     profiles->insertItem( new ProfileListBoxText( PROFILE_WIZARD_NAME ), PROFILE_WIZARD_INDEX );
@@ -527,7 +527,7 @@ void ProfileDlg::slotCreateProfile()
     bool ok = false;
     const char* mask = "xXXXXXXXXXXXXXXXXXXX"; // allows for 20 characters
     TQString name = KInputDialog::getText( i18n("Profile Name"), i18n("Please enter a name for the new profile:"), 
-                   "KRename", &ok, this, 0, 0, mask );
+                   "KRename", &ok, this, nullptr, nullptr, mask );
                    
     if( !ok )
         return;
diff --git a/krename/profiledlg.h b/krename/profiledlg.h
index 85a72c9..19b7fc6 100644
--- a/krename/profiledlg.h
+++ b/krename/profiledlg.h
@@ -57,7 +57,7 @@ class ProfileDlg : public KDialogBase, public ProfileManager
   
     
     public:
-        ProfileDlg(KRenameImpl* krename, TQWidget *parent = 0, const char *name = 0);
+        ProfileDlg(KRenameImpl* krename, TQWidget *parent = nullptr, const char *name = nullptr);
         ~ProfileDlg();
 
     private slots:
diff --git a/krename/replacedialog.cpp b/krename/replacedialog.cpp
index ef7f820..474c88f 100644
--- a/krename/replacedialog.cpp
+++ b/krename/replacedialog.cpp
@@ -37,7 +37,7 @@
 
 ReplaceDialog::ReplaceDialog( TQValueList<replacestrings> & r, TQWidget* parent )
     : KDialogBase( KDialogBase::Plain, i18n( "Find and Replace" ),
-      KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, parent, 0, true, true )
+      KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, parent, nullptr, true, true )
 {
     ReplaceDialogLayout = new TQGridLayout( plainPage(), 11, 6);
 
diff --git a/krename/replacedialog.h b/krename/replacedialog.h
index 6b092a7..7c0bee6 100644
--- a/krename/replacedialog.h
+++ b/krename/replacedialog.h
@@ -39,7 +39,7 @@ class ReplaceDialog : public KDialogBase
   
 
     public:
-        ReplaceDialog( TQValueList<replacestrings> & r, TQWidget* parent = 0 );
+        ReplaceDialog( TQValueList<replacestrings> & r, TQWidget* parent = nullptr );
         ~ReplaceDialog();
 
         TQValueList<replacestrings> getList();
diff --git a/krename/tabs.cpp b/krename/tabs.cpp
index 9c17f40..d105d49 100644
--- a/krename/tabs.cpp
+++ b/krename/tabs.cpp
@@ -39,7 +39,7 @@ tabs::tabs(KRenameImpl* impl, TQRect r, TQWidget *parent, const char *name )
     setIcon( BarIcon( "krename" ) );
 
     TQVBoxLayout* layout = new TQVBoxLayout( this, 6, 6 );
-    TQHBoxLayout* buttons = new TQHBoxLayout( 0, 6, 6 );
+    TQHBoxLayout* buttons = new TQHBoxLayout( nullptr, 6, 6 );
     TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Expanding );
     
     tab = new TQTabWidget( this );
diff --git a/krename/tabs.h b/krename/tabs.h
index 16118f0..2feb96b 100644
--- a/krename/tabs.h
+++ b/krename/tabs.h
@@ -32,7 +32,7 @@ class tabs : public TQDialog  {
     TQ_OBJECT
   
     public: 
-        tabs(KRenameImpl* impl, TQRect r, TQWidget *parent=0, const char *name=0);
+        tabs(KRenameImpl* impl, TQRect r, TQWidget *parent=nullptr, const char *name=nullptr);
         ~tabs();
 
         inline KRenameImpl* getKRename() { return krename; }
diff --git a/krename/undodialog.cpp b/krename/undodialog.cpp
index f811042..76f0852 100644
--- a/krename/undodialog.cpp
+++ b/krename/undodialog.cpp
@@ -31,7 +31,7 @@
 
 UndoDialog::UndoDialog( TQWidget* parent )
     : KDialogBase( KDialogBase::Plain, i18n("Undo Renaming"),
-      KDialogBase::User1 | KDialogBase::Close, KDialogBase::User1, parent, 0, false, true )
+      KDialogBase::User1 | KDialogBase::Close, KDialogBase::User1, parent, nullptr, false, true )
 {
     UndoDialogLayout = new TQVBoxLayout( plainPage(), 11, 6, "UndoDialogLayout");
 
diff --git a/krename/undodialog.h b/krename/undodialog.h
index da549c3..fd2de23 100644
--- a/krename/undodialog.h
+++ b/krename/undodialog.h
@@ -33,7 +33,7 @@ class UndoDialog : public KDialogBase
     TQ_OBJECT
   
     public:
-        UndoDialog( TQWidget* parent = 0 );
+        UndoDialog( TQWidget* parent = nullptr );
         ~UndoDialog();
 
         void setUndoScript( const TQString & filename );
diff --git a/krename/wizard.h b/krename/wizard.h
index 53136bc..5c9d256 100644
--- a/krename/wizard.h
+++ b/krename/wizard.h
@@ -35,7 +35,7 @@ class wizard : public KWizard
   
 
     public:
-        wizard( KRenameImpl* impl, TQRect r, TQWidget* parent = 0, const char* name = 0 );
+        wizard( KRenameImpl* impl, TQRect r, TQWidget* parent = nullptr, const char* name = nullptr );
         ~wizard();
 
         inline KRenameImpl* getKRename() { return krename; }
-- 
cgit v1.2.3

