Codechange: Using alias and std::array for company expense storage. (#11273)

This simplifies passing yearly expenses to functions and use of std algorithms.
This commit is contained in:
PeterN
2023-09-09 14:15:53 +01:00
committed by GitHub
parent 00f13282a9
commit afc1ea8135
5 changed files with 12 additions and 9 deletions

View File

@@ -172,6 +172,11 @@ enum ExpensesType : byte {
INVALID_EXPENSES = 0xFF, ///< Invalid expense type.
};
/**
* Data type for storage of Money for each #ExpensesType category.
*/
using Expenses = std::array<Money, EXPENSES_END>;
/**
* Categories of a price bases.
*/