From 12984581a5348efc92a480011dc4fd99b3e6d769 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sat, 3 Oct 2026 17:49:58 -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>
---
 src/AboutDialog.cpp      | 2 +-
 src/AboutDialog.h        | 2 +-
 src/MainWindow.cpp       | 2 +-
 src/MainWindow.h         | 4 ++--
 src/UiGuiHighlighter.cpp | 2 +-
 src/main.cpp             | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/AboutDialog.cpp b/src/AboutDialog.cpp
index 855b7a3..ba09eaa 100644
--- a/src/AboutDialog.cpp
+++ b/src/AboutDialog.cpp
@@ -28,7 +28,7 @@
 
 // Displays a dialog window with information about UniversalIndentGUI
 AboutDialog::AboutDialog(TQWidget *parent, WFlags flags) :
-		AboutDialogBase(parent, NULL, false, flags)
+		AboutDialogBase(parent, nullptr, false, flags)
 {
 	TQFont titleFont = titleLabel->font();
 	titleFont.setPointSize(20);
diff --git a/src/AboutDialog.h b/src/AboutDialog.h
index a4073e7..e6bc977 100644
--- a/src/AboutDialog.h
+++ b/src/AboutDialog.h
@@ -28,7 +28,7 @@ class AboutDialog : public AboutDialogBase
 	TQ_OBJECT
 
 	public:
-		AboutDialog(TQWidget *parent = NULL, WFlags flags = 0);
+		AboutDialog(TQWidget *parent = nullptr, WFlags flags = 0);
 
 	private:
 		void changeEvent(TQEvent *event);
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index aa9a14b..b241862 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -1219,7 +1219,7 @@ void MainWindow::encodingChanged(TQAction *encodingAction)
 
 		if (!inSrcFile.open(IO_ReadOnly | IO_Translate))
 		{
-			TQMessageBox::warning(NULL, tr("Error opening file"), tr(
+			TQMessageBox::warning(nullptr, tr("Error opening file"), tr(
 			        "Cannot read the file ") + "\"" + m_currentSourceFile + "\".");
 		}
 		else
diff --git a/src/MainWindow.h b/src/MainWindow.h
index bb8ea10..185bbf4 100644
--- a/src/MainWindow.h
+++ b/src/MainWindow.h
@@ -46,7 +46,7 @@ class MainWindow : public MainWindowBase
 
 	public:
 		// Constructor
-		MainWindow(TQString file2OpenOnStart = "", TQWidget *parent = NULL);
+		MainWindow(TQString file2OpenOnStart = "", TQWidget *parent = nullptr);
 		~MainWindow();
 
 	protected:
@@ -55,7 +55,7 @@ class MainWindow : public MainWindowBase
 	private slots:
 		void openSourceFileDialog(const TQString &fileName = TQString::null);
 		bool saveSourceFile();
-		bool saveasSourceFileDialog(TQAction *chosenEncodingAction = NULL);
+		bool saveasSourceFileDialog(TQAction *chosenEncodingAction = nullptr);
 		void saveAsOtherEncoding(TQAction *chosenEncodingAction);
 		void callIndenter();
 		void updateSourceView();
diff --git a/src/UiGuiHighlighter.cpp b/src/UiGuiHighlighter.cpp
index 662daee..deb1c30 100644
--- a/src/UiGuiHighlighter.cpp
+++ b/src/UiGuiHighlighter.cpp
@@ -91,7 +91,7 @@ UiGuiHighlighter::UiGuiHighlighter(TQextScintilla *parent) :
 	m_fileExtensions["TeX"]        = TQStringList() << "tex";
 	m_fileExtensions["XML"]        = TQStringList() << "xml";
 
-	m_lexer = NULL;
+	m_lexer = nullptr;
 
 	// Set default highlighter to C++ highlighter.
 	setLexer("cpp");
diff --git a/src/main.cpp b/src/main.cpp
index c923f60..a448daa 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -85,7 +85,7 @@ int main(int argc, char *argv[])
 	}
 
   TQApplication app(argc, argv);
-  MainWindow *mainWindow = NULL;
+  MainWindow *mainWindow = nullptr;
 
   // Setting UTF-8 as default 8-Bit encoding
   TQTextCodec::setCodecForCStrings(TQTextCodec::codecForName("UTF-8"));
-- 
cgit v1.2.3

