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
@@ -1216,7 +1216,7 @@ static const NWidgetPart _nested_vehicle_refit_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _vehicle_refit_desc(
|
||||
static WindowDesc _vehicle_refit_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "view_vehicle_refit", 240, 174,
|
||||
WC_VEHICLE_REFIT, WC_VEHICLE_VIEW,
|
||||
WDF_CONSTRUCTION,
|
||||
@@ -2143,14 +2143,14 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static WindowDesc _vehicle_list_other_desc(
|
||||
static WindowDesc _vehicle_list_other_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "list_vehicles", 260, 246,
|
||||
WC_INVALID, WC_NONE,
|
||||
0,
|
||||
std::begin(_nested_vehicle_list), std::end(_nested_vehicle_list)
|
||||
);
|
||||
|
||||
static WindowDesc _vehicle_list_train_desc(
|
||||
static WindowDesc _vehicle_list_train_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "list_vehicles_train", 325, 246,
|
||||
WC_TRAINS_LIST, WC_NONE,
|
||||
0,
|
||||
@@ -2649,7 +2649,7 @@ struct VehicleDetailsWindow : Window {
|
||||
};
|
||||
|
||||
/** Vehicle details window descriptor. */
|
||||
static WindowDesc _train_vehicle_details_desc(
|
||||
static WindowDesc _train_vehicle_details_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "view_vehicle_details_train", 405, 178,
|
||||
WC_VEHICLE_DETAILS, WC_VEHICLE_VIEW,
|
||||
0,
|
||||
@@ -2657,7 +2657,7 @@ static WindowDesc _train_vehicle_details_desc(
|
||||
);
|
||||
|
||||
/** Vehicle details window descriptor for other vehicles than a train. */
|
||||
static WindowDesc _nontrain_vehicle_details_desc(
|
||||
static WindowDesc _nontrain_vehicle_details_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "view_vehicle_details", 405, 113,
|
||||
WC_VEHICLE_DETAILS, WC_VEHICLE_VIEW,
|
||||
0,
|
||||
@@ -3253,7 +3253,7 @@ public:
|
||||
};
|
||||
|
||||
/** Vehicle view window descriptor for all vehicles but trains. */
|
||||
static WindowDesc _vehicle_view_desc(
|
||||
static WindowDesc _vehicle_view_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "view_vehicle", 250, 116,
|
||||
WC_VEHICLE_VIEW, WC_NONE,
|
||||
0,
|
||||
@@ -3265,7 +3265,7 @@ static WindowDesc _vehicle_view_desc(
|
||||
* Vehicle view window descriptor for trains. Only minimum_height and
|
||||
* default_height are different for train view.
|
||||
*/
|
||||
static WindowDesc _train_view_desc(
|
||||
static WindowDesc _train_view_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "view_vehicle_train", 250, 134,
|
||||
WC_VEHICLE_VIEW, WC_NONE,
|
||||
0,
|
||||
|
Reference in New Issue
Block a user