diff options
author | frosch <frosch@openttd.org> | 2013-05-26 19:23:42 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-05-26 19:23:42 +0000 |
commit | 56e4a8c4d63b19cb037ac1ba64c5a4d7fde4350b (patch) | |
tree | f3e5c225182fce7a451af4e09e943920e0f1cc3c /src/subsidy_gui.cpp | |
parent | b10a4f151aa534860dcc61ecf8cba7b3589e6281 (diff) | |
download | openttd-56e4a8c4d63b19cb037ac1ba64c5a4d7fde4350b.tar.xz |
(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction.
Diffstat (limited to 'src/subsidy_gui.cpp')
-rw-r--r-- | src/subsidy_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/subsidy_gui.cpp b/src/subsidy_gui.cpp index 80f9adbe5..a53a8b3ba 100644 --- a/src/subsidy_gui.cpp +++ b/src/subsidy_gui.cpp @@ -28,11 +28,11 @@ struct SubsidyListWindow : Window { Scrollbar *vscroll; - SubsidyListWindow(const WindowDesc *desc, WindowNumber window_number) : Window() + SubsidyListWindow(WindowDesc *desc, WindowNumber window_number) : Window(desc) { - this->CreateNestedTree(desc); + this->CreateNestedTree(); this->vscroll = this->GetScrollbar(WID_SUL_SCROLLBAR); - this->FinishInitNested(desc, window_number); + this->FinishInitNested(window_number); this->OnInvalidateData(0); } @@ -238,7 +238,7 @@ static const NWidgetPart _nested_subsidies_list_widgets[] = { EndContainer(), }; -static const WindowDesc _subsidies_list_desc( +static WindowDesc _subsidies_list_desc( WDP_AUTO, 500, 127, WC_SUBSIDIES_LIST, WC_NONE, 0, |