Mercurial > hg > openttd
diff src/company_gui.cpp @ 11897:b29337cb73a4 draft
(svn r16297) -Codechange: silence more ICC warnings
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 13 May 2009 17:39:00 +0000 |
parents | 1ac324d7bf52 |
children | 0a4b63f3f3c3 |
line wrap: on
line diff
--- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -76,11 +76,18 @@ const ExpensesType *et; ///< Expenses items. const int length; ///< Number of items in list. const int height; ///< Height of list, 10 pixels per item, plus an additional 12 pixels per subtotal. */ + + ExpensesList(ExpensesType *et, int length, int height) : + et(et), + length(length), + height(height) + { + } }; static const ExpensesList _expenses_list_types[] = { - { _expenses_list_1, lengthof(_expenses_list_1), lengthof(_expenses_list_1) * 10 }, - { _expenses_list_2, lengthof(_expenses_list_2), lengthof(_expenses_list_2) * 10 + 3 * 12 }, + ExpensesList(_expenses_list_1, lengthof(_expenses_list_1), lengthof(_expenses_list_1) * 10), + ExpensesList(_expenses_list_2, lengthof(_expenses_list_2), lengthof(_expenses_list_2) * 10 + 3 * 12), }; /** Widgets of the company finances windows. */