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/linkgraph/linkgraph.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/linkgraph/linkgraph.h')
-rw-r--r-- | src/linkgraph/linkgraph.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/linkgraph/linkgraph.h b/src/linkgraph/linkgraph.h index 32f94a3c8..5eb85e4c3 100644 --- a/src/linkgraph/linkgraph.h +++ b/src/linkgraph/linkgraph.h @@ -16,10 +16,10 @@ #include "../station_base.h" #include "../cargotype.h" #include "../date_func.h" +#include "../saveload/saveload.h" #include "linkgraph_type.h" #include <utility> -struct SaveLoad; class LinkGraph; /** @@ -525,8 +525,8 @@ public: protected: friend class LinkGraph::ConstNode; friend class LinkGraph::Node; - friend const SaveLoad *GetLinkGraphDesc(); - friend const SaveLoad *GetLinkGraphJobDesc(); + friend SaveLoadTable GetLinkGraphDesc(); + friend SaveLoadTable GetLinkGraphJobDesc(); friend void SaveLoad_LinkGraph(LinkGraph &lg); CargoID cargo; ///< Cargo of this component's link graph. |