Codechange: use the constructor for CompanyNewsItem to fill the data instead of a separate function

This commit is contained in:
rubidium42
2021-06-16 17:54:08 +02:00
committed by rubidium42
parent aa9818db90
commit 9a7750f14e
4 changed files with 14 additions and 21 deletions

View File

@@ -158,14 +158,14 @@ struct NewsStringData : NewsAllocatedData {
* resulting in wrong names and such.
*/
struct CompanyNewsInformation : NewsAllocatedData {
char company_name[64]; ///< The name of the company
char president_name[64]; ///< The name of the president
char other_company_name[64]; ///< The name of the company taking over this one
std::string company_name; ///< The name of the company
std::string president_name; ///< The name of the president
std::string other_company_name; ///< The name of the company taking over this one
uint32 face; ///< The face of the president
byte colour; ///< The colour related to the company
void FillData(const struct Company *c, const struct Company *other = nullptr);
CompanyNewsInformation(const struct Company *c, const struct Company *other = nullptr);
};
#endif /* NEWS_TYPE_H */