From 4626bb886821d713b26605aca32bb3e18157051a Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sun, 14 Jun 2026 01:44:04 +0300
Subject: [PATCH 36/36] worklist.c: Replace NULL with nullptr

See RM #2049

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 common/worklist.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/common/worklist.c b/common/worklist.c
index 6eb4220282..6c9c8c2950 100644
--- a/common/worklist.c
+++ b/common/worklist.c
@@ -45,7 +45,7 @@ void worklist_init(struct worklist *pwl)
     /* just setting the entry to zero: */
     pwl->entries[i].kind = VUT_NONE;
     /* all the union pointers should be in the same place: */
-    pwl->entries[i].value.building = NULL;
+    pwl->entries[i].value.building = nullptr;
   }
 }
 
@@ -84,12 +84,12 @@ bool worklist_peek(const struct worklist *pwl, struct universal *prod)
   return FALSE.
 ****************************************************************************/
 bool worklist_peek_ith(const struct worklist *pwl,
-		       struct universal *prod, int idx)
+                       struct universal *prod, int idx)
 {
   /* Out of possible bounds. */
   if (idx < 0 || pwl->length <= idx) {
     prod->kind = VUT_NONE;
-    prod->value.building = NULL;
+    prod->value.building = nullptr;
     return FALSE;
   }
 
@@ -132,10 +132,10 @@ void worklist_remove(struct worklist *pwl, int idx)
   for (i = idx; i < pwl->length - 1; i++) {
     pwl->entries[i] = pwl->entries[i + 1];
   }
-  /* just setting the entry to zero: */
+  /* Just setting the entry to zero: */
   pwl->entries[pwl->length - 1].kind = VUT_NONE;
-  /* all the union pointers should be in the same place: */
-  pwl->entries[pwl->length - 1].value.building = NULL;
+  /* All the union pointers should be in the same place: */
+  pwl->entries[pwl->length - 1].value.building = nullptr;
   pwl->length--;
 }
 
-- 
2.53.0

