Codechange: Add __FILE__/__LINE__ of WindowDesc to WindowDesc.
This is to allow unit-tests to produce more useful output.
This commit is contained in:

committed by
Peter Nelson

parent
873f93cab1
commit
18fb8e153f
@@ -762,7 +762,7 @@ static const NWidgetPart _nested_company_stations_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _company_stations_desc(
|
||||
static WindowDesc _company_stations_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "list_stations", 358, 162,
|
||||
WC_STATION_LIST, WC_NONE,
|
||||
0,
|
||||
@@ -2130,7 +2130,7 @@ const StringID StationViewWindow::_group_names[] = {
|
||||
INVALID_STRING_ID
|
||||
};
|
||||
|
||||
static WindowDesc _station_view_desc(
|
||||
static WindowDesc _station_view_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "view_station", 249, 117,
|
||||
WC_STATION_VIEW, WC_NONE,
|
||||
0,
|
||||
@@ -2387,7 +2387,7 @@ struct SelectStationWindow : Window {
|
||||
}
|
||||
};
|
||||
|
||||
static WindowDesc _select_station_desc(
|
||||
static WindowDesc _select_station_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "build_station_join", 200, 180,
|
||||
WC_SELECT_STATION, WC_NONE,
|
||||
WDF_CONSTRUCTION,
|
||||
|
Reference in New Issue
Block a user