From 3ca71c9a50b53bf1b6583a6f7a7497d6e467b364 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sat, 3 Oct 2026 17:48:18 -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/electronics/switch.cpp | 2 +-
 src/itemdocument.cpp       | 4 ++--
 src/projectmanager.cpp     | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/electronics/switch.cpp b/src/electronics/switch.cpp
index eb5d672..57830af 100644
--- a/src/electronics/switch.cpp
+++ b/src/electronics/switch.cpp
@@ -95,7 +95,7 @@ void Switch::startBouncing()
 // 	kdDebug() << "m_bounceStart="<<m_bounceStart<<" m_bouncePeriod_ms="<<m_bouncePeriod_ms<<endl;
 	
 	// initialize random generator
-	srand ( time(NULL) );
+	srand ( time(nullptr) );
 	
 	// Give our bounce resistor an initial value
 	bounce();
diff --git a/src/itemdocument.cpp b/src/itemdocument.cpp
index a1da229..66b6e0c 100644
--- a/src/itemdocument.cpp
+++ b/src/itemdocument.cpp
@@ -853,14 +853,14 @@ void ItemDocument::exportToImage()
 	
 	else if ( filter == "*.svg" )
 	{
-		KMessageBox::information( NULL, i18n("SVG export is sub-functional"), i18n("Export As Image") );
+		KMessageBox::information( nullptr, i18n("SVG export is sub-functional"), i18n("Export As Image") );
 		type = "SVG";
 	}
 	// I don't like forcing people to use the right extension (personally)
 	// but it is the easiest way to decide image type.
 	else
 	{
-		KMessageBox::sorry( NULL, i18n("Unknown extension, please select one from the filter list."), i18n("Export As Image") );
+		KMessageBox::sorry( nullptr, i18n("Unknown extension, please select one from the filter list."), i18n("Export As Image") );
 		return;
 	}
 
diff --git a/src/projectmanager.cpp b/src/projectmanager.cpp
index 108c2a6..777beb7 100644
--- a/src/projectmanager.cpp
+++ b/src/projectmanager.cpp
@@ -845,7 +845,7 @@ bool ProjectInfo::save()
 	TQFile file( m_url.path() );
 	if ( file.open(IO_WriteOnly) == false )
 	{
-		KMessageBox::sorry( NULL, i18n("Project could not be saved to \"%1\"").arg(m_url.path()), i18n("Saving Project") );
+		KMessageBox::sorry( nullptr, i18n("Project could not be saved to \"%1\"").arg(m_url.path()), i18n("Saving Project") );
 		return false;
 	}
 	
-- 
cgit v1.2.3

