summaryrefslogtreecommitdiff
path: root/src/company_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-13 17:39:00 +0000
committerrubidium <rubidium@openttd.org>2009-05-13 17:39:00 +0000
commit5f81ba886c0d1341441d68b3346a374c77aac972 (patch)
tree8a948f402fa6e255d5db8ab2c42b0552ef62dd38 /src/company_gui.cpp
parentd23f616e9f2a381c6431d8374d52fe13f5ad5052 (diff)
downloadopenttd-5f81ba886c0d1341441d68b3346a374c77aac972.tar.xz
(svn r16297) -Codechange: silence more ICC warnings
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r--src/company_gui.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index 7b153196d..3f977333c 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -76,11 +76,18 @@ struct ExpensesList {
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. */