From 750d48a7d0b3790289a874c2d1ca5e65ee905af2 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>
---
 ksnapshot/windowgrabber.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ksnapshot/windowgrabber.cpp b/ksnapshot/windowgrabber.cpp
index 70fbabdc..d3931c9f 100644
--- a/ksnapshot/windowgrabber.cpp
+++ b/ksnapshot/windowgrabber.cpp
@@ -69,7 +69,7 @@ void getWindowsRecursive( std::vector<TQRect>& windows, Window w,
             for( unsigned int i = 0; i < nchildren; ++i ) {
                 getWindowsRecursive( windows, children[ i ], x, y, depth + 1 );
 	    }
-            if( children != NULL )
+            if( children )
 		XFree( children );
 	}
     }
@@ -89,7 +89,7 @@ Window findRealWindow( Window w, int depth = 0 )
     unsigned char* prop;
     if( XGetWindowProperty( tqt_xdisplay(), w, wm_state, 0, 0, False, AnyPropertyType,
 	&type, &format, &nitems, &after, &prop ) == Success ) {
-	if( prop != NULL )
+	if( prop )
 	    XFree( prop );
 	if( type != None )
 	    return w;
@@ -103,7 +103,7 @@ Window findRealWindow( Window w, int depth = 0 )
 	     i < nchildren && ret == None;
 	     ++i )
 	    ret = findRealWindow( children[ i ], depth + 1 );
-	if( children != NULL )
+	if( children )
 	    XFree( children );
     }
     return ret;
@@ -223,7 +223,7 @@ TQPixmap WindowGrabber::grabCurrent( bool includeDecorations )
     unsigned int nchildren;
     if( XQueryTree( tqt_xdisplay(), child, &root, &parent,
                     &children, &nchildren ) != 0 ) {
-	if( children != NULL )
+	if( children )
 	    XFree( children );
 	int newx, newy;
 	Window dummy;
-- 
cgit v1.2.3

