From b33b2ef22ba94650cf4ef3eaf3c94e33470f53c8 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sun, 20 Sep 2026 17:57:28 -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>
---
 lib/libchmfile/libchmfileimpl.cpp | 12 ++++++------
 lib/tdeio-msits/msits.h           |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/lib/libchmfile/libchmfileimpl.cpp b/lib/libchmfile/libchmfileimpl.cpp
index 63fc376..682483c 100644
--- a/lib/libchmfile/libchmfileimpl.cpp
+++ b/lib/libchmfile/libchmfileimpl.cpp
@@ -57,7 +57,7 @@ class KCHMShowWaitCursor
 
 LCHMFileImpl::LCHMFileImpl( )
 {
-	m_chmFile = NULL;
+	m_chmFile = nullptr;
 	m_home = m_filename = m_home = m_topicsFile = m_indexFile = m_font = TQString();
 	m_entityDecodeMap.clear();
 	m_textCodec = 0;
@@ -88,7 +88,7 @@ bool LCHMFileImpl::loadFile( const TQString & archiveName )
 
 	m_chmFile = chm_open( TQFile::encodeName(filename) );
 	
-	if ( m_chmFile == NULL )
+	if ( m_chmFile == nullptr )
 		return false;
 
 	m_filename = filename;
@@ -127,12 +127,12 @@ bool LCHMFileImpl::loadFile( const TQString & archiveName )
 
 void LCHMFileImpl::closeAll( )
 {
-	if ( m_chmFile == NULL )
+	if ( m_chmFile == nullptr )
 		return;
 
 	chm_close( m_chmFile );
 	
-	m_chmFile = NULL;
+	m_chmFile = nullptr;
 	m_home = m_filename = m_home = m_topicsFile = m_indexFile = m_font = TQString();
 	m_entityDecodeMap.clear();
 	m_textCodec = 0;
@@ -522,7 +522,7 @@ bool LCHMFileImpl::searchWord (const TQString& text,
 
 bool LCHMFileImpl::ResolveObject(const TQString& fileName, chmUnitInfo *ui) const
 {
-	return m_chmFile != NULL 
+	return m_chmFile != nullptr
 			&& ::chm_resolve_object(m_chmFile, fileName.ascii(), ui) ==
 			CHM_RESOLVE_SUCCESS;
 }
@@ -746,7 +746,7 @@ bool LCHMFileImpl::getInfoFromSystem()
 	chmUnitInfo ui;
 	
 	int index = 0;
-	unsigned char* cursor = NULL, *p;
+	unsigned char* cursor = nullptr, *p;
 	u_int16_t value = 0;
 	long size = 0;
 
diff --git a/lib/tdeio-msits/msits.h b/lib/tdeio-msits/msits.h
index 7678ba3..fe9c243 100644
--- a/lib/tdeio-msits/msits.h
+++ b/lib/tdeio-msits/msits.h
@@ -56,7 +56,7 @@ private:
 	// Resolve an object inside a CHM file
 	inline bool ResolveObject (const TQString& fileName, chmUnitInfo *ui)
 	{
-		return m_chmFile != NULL && ::chm_resolve_object(m_chmFile, fileName.utf8(), ui) == CHM_RESOLVE_SUCCESS;
+		return m_chmFile != nullptr && ::chm_resolve_object(m_chmFile, fileName.utf8(), ui) == CHM_RESOLVE_SUCCESS;
 	}
 
 	// Retrieve an object from the CHM file
-- 
cgit v1.2.3

