From f9f19de8c2bf0e45f1421336e916f5ac36d9870f Mon Sep 17 00:00:00 2001 From: Rubidium Date: Sat, 1 Feb 2025 02:47:31 +0100 Subject: [PATCH] Codechange: strongly type RoadStopID --- src/roadstop_base.h | 2 +- src/station_type.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/roadstop_base.h b/src/roadstop_base.h index 3c0ecf129e..af95fee4f8 100644 --- a/src/roadstop_base.h +++ b/src/roadstop_base.h @@ -15,7 +15,7 @@ #include "core/bitmath_func.hpp" #include "vehicle_type.h" -typedef Pool RoadStopPool; +using RoadStopPool = Pool; extern RoadStopPool _roadstop_pool; /** A Stop for a Road Vehicle */ diff --git a/src/station_type.h b/src/station_type.h index a6c5223195..b6438d2eb8 100644 --- a/src/station_type.h +++ b/src/station_type.h @@ -10,11 +10,12 @@ #ifndef STATION_TYPE_H #define STATION_TYPE_H +#include "core/pool_type.hpp" #include "core/smallstack_type.hpp" #include "tilearea_type.h" typedef uint16_t StationID; -typedef uint16_t RoadStopID; +using RoadStopID = PoolID; struct BaseStation; struct Station;