From d10499f2f11352ccbcbf9d6fa56f75847296a535 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Sat, 1 Feb 2025 00:13:50 +0100 Subject: [PATCH] Codechange: strongly type PersistentStorageID --- src/newgrf_storage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/newgrf_storage.h b/src/newgrf_storage.h index 3db901b984..0f962d6681 100644 --- a/src/newgrf_storage.h +++ b/src/newgrf_storage.h @@ -186,10 +186,10 @@ void AddChangedPersistentStorage(BasePersistentStorageArray *storage); typedef PersistentStorageArray OldPersistentStorage; -typedef uint32_t PersistentStorageID; +using PersistentStorageID = PoolID; struct PersistentStorage; -typedef Pool PersistentStoragePool; +using PersistentStoragePool = Pool; extern PersistentStoragePool _persistent_storage_pool;