From aad218b279376c1aa654e3f68262aeee89c68231 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Thu, 12 Nov 2026 20:53:50 -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>
---
 kgamma/kcmkgamma/kgamma.cpp    | 4 ++--
 kgamma/kcmkgamma/xvidextwrap.h | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/kgamma/kcmkgamma/kgamma.cpp b/kgamma/kcmkgamma/kgamma.cpp
index 70aa3fc3..7eea251f 100644
--- a/kgamma/kcmkgamma/kgamma.cpp
+++ b/kgamma/kcmkgamma/kgamma.cpp
@@ -50,7 +50,7 @@ extern "C"
 	bool test_kgamma()
 	{
 		bool retval;
-		(void) new XVidExtWrap(&retval, NULL);
+		(void) new XVidExtWrap(&retval, nullptr);
 		return retval;
 	}
 }
@@ -60,7 +60,7 @@ KGamma::KGamma(TQWidget *parent, const char *name, const TQStringList&)
 {
   bool ok;
   GammaCorrection = true;
-  xv = new XVidExtWrap(&ok, NULL);
+  xv = new XVidExtWrap(&ok, nullptr);
   if (ok) { /* KDE 4: Uneccessary test, when all KCM wrappers do conditional loading */
     xv->getGamma(XVidExtWrap::Red, &ok);
     if (ok) {
diff --git a/kgamma/kcmkgamma/xvidextwrap.h b/kgamma/kcmkgamma/xvidextwrap.h
index 20ae4310..c132e96f 100644
--- a/kgamma/kcmkgamma/xvidextwrap.h
+++ b/kgamma/kcmkgamma/xvidextwrap.h
@@ -29,7 +29,7 @@ class XVidExtWrap {
   public:
 
     enum GammaChannel { Value = 0, Red = 1, Green = 2, Blue = 3 };
-    XVidExtWrap(bool *OK, const char* displayname = NULL);
+    XVidExtWrap(bool *OK, const char* displayname = nullptr);
     ~XVidExtWrap();
 
     /** Returns the default screen */
@@ -43,9 +43,9 @@ class XVidExtWrap {
     /** Returns the current screen */
     int getScreen() { return screen; };
     /** Sets the gamma value on the current screen */
-    void setGamma( int channel, float gam, bool *OK = NULL );
+    void setGamma( int channel, float gam, bool *OK = nullptr );
     /** Gets the gamma value of the current screen */
-    float getGamma( int channel, bool *OK = NULL );
+    float getGamma( int channel, bool *OK = nullptr );
     /** Limits the possible gamma values (default 0.1-10.0) */
     void setGammaLimits( float min, float max );
 
-- 
cgit v1.2.3

