diff options
author | Patric Stout <truebrain@openttd.org> | 2021-05-31 22:26:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-31 22:26:44 +0200 |
commit | 9fff00ba205260ee5e11b50f87a3edee9b7e76a3 (patch) | |
tree | 2c6ee1eb6f0df2539c9ed17a2ae05541518a7dc9 /src/order_backup.h | |
parent | 956d761e3ef1968c6470a9e78597c5531ed7c332 (diff) | |
download | openttd-9fff00ba205260ee5e11b50f87a3edee9b7e76a3.tar.xz |
Codechange: C++-ify lists for SaveLoad (#9323)
Basically, this changes "SaveLoad *" to either:
1) "SaveLoadTable" if a list of SaveLoads was meant
2) "SaveLoad &" if a single entry was meant
As added bonus, this removes SL_END / SLE_END / SLEG_END. This
also adds core/span.hpp, a "std::span"-lite.
Diffstat (limited to 'src/order_backup.h')
-rw-r--r-- | src/order_backup.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/order_backup.h b/src/order_backup.h index 5d1dcef50..e1b71a71d 100644 --- a/src/order_backup.h +++ b/src/order_backup.h @@ -15,6 +15,7 @@ #include "tile_type.h" #include "vehicle_type.h" #include "base_consist.h" +#include "saveload/saveload.h" /** Unique identifier for an order backup. */ typedef uint8 OrderBackupID; @@ -34,7 +35,7 @@ static const uint32 MAKE_ORDER_BACKUP_FLAG = 1U << 31; */ struct OrderBackup : OrderBackupPool::PoolItem<&_order_backup_pool>, BaseConsist { private: - friend const struct SaveLoad *GetOrderBackupDescription(); ///< Saving and loading of order backups. + friend SaveLoadTable GetOrderBackupDescription(); ///< Saving and loading of order backups. friend void Load_BKOR(); ///< Creating empty orders upon savegame loading. uint32 user; ///< The user that requested the backup. TileIndex tile; ///< Tile of the depot where the order was changed. |