From c57a0bc9b8fb11caaf7e4bab2502f2ae851f2e3b Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sat, 8 Aug 2026 16:07:52 +0300
Subject: [PATCH 47/47] setcompat.c: Replace NULL with nullptr

See RM #2125

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

diff --git a/server/setcompat.c b/server/setcompat.c
index 741529ad8a..928690b633 100644
--- a/server/setcompat.c
+++ b/server/setcompat.c
@@ -34,7 +34,7 @@ struct set_name_compat {
 static struct set_name_compat set_name_compat_S3_1_to_S3_2[] =
 {
   { "spaceship_travel_time", "spaceship_travel_pct" },
-  { NULL, NULL }
+  { nullptr, nullptr }
 };
 
 
@@ -47,7 +47,7 @@ static const char *setcompat_name_generic(const char *old_name,
 {
   int i;
 
-  for (i = 0; compats[i].old_name != NULL; i++) {
+  for (i = 0; compats[i].old_name != nullptr; i++) {
     if (!fc_strcasecmp(old_name, compats[i].old_name)) {
       return compats[i].new_name;
     }
@@ -83,5 +83,5 @@ const char *setcompat_S3_2_val_from_S3_1(struct setting *pset,
 #endif
   }
 
-  return NULL;
+  return nullptr;
 }
-- 
2.53.0

