From 81062b5b59572bf73426451fcb733a2a6692a4c1 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sun, 20 Sep 2026 20:13:02 -0300
Subject: Replace NULL 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 | 2 +-
 krename/batchrenamer.cpp   | 6 +++---
 krename/datetime.cpp       | 4 ++--
 krename/helpdialog.cpp     | 2 +-
 krename/kmylistbox.cpp     | 4 ++--
 krename/krenameimpl.cpp    | 6 +++---
 krename/plugin.cpp         | 2 +-
 krename/pluginloader.cpp   | 8 ++++----
 krename/threadedlister.cpp | 6 +++---
 9 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/krename/ProgressDialog.cpp b/krename/ProgressDialog.cpp
index 8952435..13f566e 100644
--- a/krename/ProgressDialog.cpp
+++ b/krename/ProgressDialog.cpp
@@ -47,7 +47,7 @@
 ProgressDialog::ProgressDialog( TQWidget* parent, const char* name, WFlags fl )
     : TQWidget( parent, name, fl )
 {
-    renamedFiles = NULL;
+    renamedFiles = nullptr;
 
     resize( 400, 380 );
     setCaption( i18n("Progress") );
diff --git a/krename/batchrenamer.cpp b/krename/batchrenamer.cpp
index c652a90..62d1304 100644
--- a/krename/batchrenamer.cpp
+++ b/krename/batchrenamer.cpp
@@ -200,7 +200,7 @@ TQString BatchRenamer::parsePlugins( int i, const TQString& text, int type )
 
 void BatchRenamer::createPreview( TQListView* list )
 {
-    KMyListViewItem* item1 = NULL;
+    KMyListViewItem* item1 = nullptr;
     TQString tmp;
 
     m_counters.clear();
@@ -234,8 +234,8 @@ void BatchRenamer::work( ProgressDialog* p )
     // TODO: use CopyJob here
 
     FileOperation fop;
-    TQFile* fundo ( NULL );
-    TQTextStream* tundo ( NULL );
+    TQFile* fundo ( nullptr );
+    TQTextStream* tundo ( nullptr );
 
     if( undo ) {
         // Create header for undo script
diff --git a/krename/datetime.cpp b/krename/datetime.cpp
index 588e45a..f6717de 100644
--- a/krename/datetime.cpp
+++ b/krename/datetime.cpp
@@ -148,7 +148,7 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int )
     time_t ti;
 
     f = fopen((const char *)filename, "r");
-    if( f == NULL )
+    if( f == nullptr )
         return i18n("Can't change date of file %1.").arg(filename);
 
     fclose( f );
@@ -188,7 +188,7 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int )
     time_t ti;
 
     f = fopen(filename.local8Bit(), "r");
-    if( f == NULL )
+    if( f == nullptr )
         return i18n("Can't change date of file %1.").arg(filename);
 
     fclose( f );
diff --git a/krename/helpdialog.cpp b/krename/helpdialog.cpp
index 189664c..bc7b732 100644
--- a/krename/helpdialog.cpp
+++ b/krename/helpdialog.cpp
@@ -68,7 +68,7 @@ HelpDialog::HelpDialog( HelpDialogData* data, TQWidget* parent,
     const char* name, bool modal, WFlags fl )
     : TQDialog( parent, name, modal, fl )
 {
-    text = NULL;
+    text = nullptr;
 
     resize( 500, 400 ); 
     setCaption( i18n( "Help" ) );
diff --git a/krename/kmylistbox.cpp b/krename/kmylistbox.cpp
index cfca687..09d7cde 100644
--- a/krename/kmylistbox.cpp
+++ b/krename/kmylistbox.cpp
@@ -165,7 +165,7 @@ void KMyListBox::addDirName( const KURL & dirname, const TQString & filter, bool
             if( !isInList( dirname ) )
                 addDirName( dirname );
                 
-        listerDone( NULL );
+        listerDone( nullptr );
     }
 }
 
@@ -186,7 +186,7 @@ void KMyListBox::dropEvent(TQDropEvent* e)
             addFile( list[i], false );
         
         setUpdatesEnabled( true );
-        listerDone( NULL );
+        listerDone( nullptr );
     }
 }
 
diff --git a/krename/krenameimpl.cpp b/krename/krenameimpl.cpp
index c7f6bea..c99fc4e 100644
--- a/krename/krenameimpl.cpp
+++ b/krename/krenameimpl.cpp
@@ -98,7 +98,7 @@ KRenameImpl::KRenameImpl( TQWidget* p, KMenuBar* m, TQPushButton* finish )
     plugin = PluginLoader::instance();
     helpDialogData = new HelpDialogData();
     // Maybe parent instead of 0 but might crash when switching from wizard to tab mode
-    helpDialog = new HelpDialog( helpDialogData, NULL, NULL, false );
+    helpDialog = new HelpDialog( helpDialogData, nullptr, nullptr, false );
 
     m_switching = false;
     
@@ -1680,8 +1680,8 @@ TQWidget* KRenameImpl::launch( TQRect rect, const KURL::List & list, KRenameImpl
         config->sync();
     }
 
-    TQWidget* w = NULL;
-    KRenameImpl* k = NULL;
+    TQWidget* w = nullptr;
+    KRenameImpl* k = nullptr;
 
     if( wizardmode ) {
         wizard* krename = new wizard( impl, rect );
diff --git a/krename/plugin.cpp b/krename/plugin.cpp
index 8dade82..135154b 100644
--- a/krename/plugin.cpp
+++ b/krename/plugin.cpp
@@ -22,7 +22,7 @@
 
 Plugin::Plugin() 
 { 
-    m_widget = NULL;
+    m_widget = nullptr;
 }
 
 Plugin::~Plugin() 
diff --git a/krename/pluginloader.cpp b/krename/pluginloader.cpp
index 8f8edf5..25014d2 100644
--- a/krename/pluginloader.cpp
+++ b/krename/pluginloader.cpp
@@ -63,7 +63,7 @@ PluginLoader* PluginLoader::instance()
     return m_plugin;
 }
 
-PluginLoader* PluginLoader::m_plugin = NULL;
+PluginLoader* PluginLoader::m_plugin = nullptr;
 
 void PluginLoader::loadPlugins( bool fileplugins )
 {
@@ -144,18 +144,18 @@ Plugin* PluginLoader::findPlugin( const TQString & token )
 
     // add typos to the cache, too:
     // So that we find immediately that this key is not supported.
-    m_bracket_cache.insert( lower, NULL, true );
+    m_bracket_cache.insert( lower, nullptr, true );
     if( m_bracket_cache.count() > BRACKET_CACHE_COUNT )
         m_bracket_cache.remove( m_bracket_cache.begin() );
         
-    return NULL;
+    return nullptr;
 }
 
 void PluginLoader::addPlugin( Plugin* plugin )
 {
     PluginLibrary* listitem=new PluginLibrary;
     listitem->plugin = plugin;
-    listitem->check = NULL;
+    listitem->check = nullptr;
     listitem->usePlugin = plugin->alwaysUsed();
     libs.append( listitem );
 }
diff --git a/krename/threadedlister.cpp b/krename/threadedlister.cpp
index c5dd01a..d80f1cc 100644
--- a/krename/threadedlister.cpp
+++ b/krename/threadedlister.cpp
@@ -31,9 +31,9 @@ ThreadedLister::ThreadedLister( TQMutex* mutex, unsigned int* counter, KMyListBo
     ++(*m_counter);
     m_mutex->unlock();
 
-    m_reclister = NULL;
-    m_lister = NULL;
-    m_internal = NULL;
+    m_reclister = nullptr;
+    m_lister = nullptr;
+    m_internal = nullptr;
 
     m_hidden = false;
     m_recursive = false;
-- 
cgit v1.2.3

