diff options
author | rubidium <rubidium@openttd.org> | 2008-05-18 20:40:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-18 20:40:30 +0000 |
commit | 6da56ee87ed7131b0c8e47d8924e5305ea8c0dd2 (patch) | |
tree | 41abfe9b87f469f713f101ff0e28d4bcf1c50545 /src/toolbar_gui.cpp | |
parent | 9aa69db2e6352bf81df189c70ba2719bbdc38c31 (diff) | |
download | openttd-6da56ee87ed7131b0c8e47d8924e5305ea8c0dd2.tar.xz |
(svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors.
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r-- | src/toolbar_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 0a3be270e..b41b6c1d7 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -1125,7 +1125,7 @@ struct ToolbarMenuWindow : Window { ToolbarMenuWindow(int x, int y, int width, int height, const Widget *widgets, int item_count, int sel_index, int parent_button, StringID base_string, int checked_items, int disabled_mask) : - Window(x, y, width, height, NULL, WC_TOOLBAR_MENU, widgets), + Window(x, y, width, height, WC_TOOLBAR_MENU, widgets), item_count(item_count), sel_index(sel_index), main_button(GB(parent_button, 0, 8)), action_id((GB(parent_button, 8, 8) != 0) ? GB(parent_button, 8, 8) : parent_button), checked_items(checked_items), disabled_items(disabled_items), base_string(base_string) @@ -1280,7 +1280,7 @@ struct ToolbarPlayerMenuWindow : Window { int gray_items; ToolbarPlayerMenuWindow(int x, int y, int width, int height, const Widget *widgets, int main_button, int gray) : - Window(x, y, width, height, NULL, WC_TOOLBAR_MENU, widgets), + Window(x, y, width, height, WC_TOOLBAR_MENU, widgets), item_count(0), main_button(main_button), action_id(main_button), gray_items(gray) { this->flags4 &= ~WF_WHITE_BORDER_MASK; |