diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-04-21 13:42:30 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-04-21 21:39:00 +0200 |
commit | 5ff15443e9160d2669ee9f54a3cefd0c43537320 (patch) | |
tree | 116fa06ec98db8a112874c94c5f6e8cd1d9d69fd /src/subsidy_func.h | |
parent | bf4fe19a6684231d04764c3bee5ed51e4124a925 (diff) | |
download | openttd-5ff15443e9160d2669ee9f54a3cefd0c43537320.tar.xz |
Cleanup: Replace single-use Pair struct with std::pair.
This struct is defined in geometry_type but not used by any geometry-related
code, only for subsidy code where both parameters are cast from int to
NewsReferenceType.
Diffstat (limited to 'src/subsidy_func.h')
-rw-r--r-- | src/subsidy_func.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/subsidy_func.h b/src/subsidy_func.h index 4889ead24..cc63577d3 100644 --- a/src/subsidy_func.h +++ b/src/subsidy_func.h @@ -14,8 +14,9 @@ #include "station_type.h" #include "company_type.h" #include "cargo_type.h" +#include "news_type.h" -Pair SetupSubsidyDecodeParam(const struct Subsidy *s, bool mode); +std::pair<NewsReferenceType, NewsReferenceType> SetupSubsidyDecodeParam(const struct Subsidy *s, bool mode); void DeleteSubsidyWith(SourceType type, SourceID index); bool CheckSubsidised(CargoID cargo_type, CompanyID company, SourceType src_type, SourceID src, const Station *st); void RebuildSubsidisedSourceAndDestinationCache(); |