mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-13 17:49:10 +00:00
Codechange: Add __FILE__/__LINE__ of WindowDesc to WindowDesc.
This is to allow unit-tests to produce more useful output.
This commit is contained in:
@@ -141,7 +141,7 @@ static const NWidgetPart _nested_graph_legend_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _graph_legend_desc(
|
||||
static WindowDesc _graph_legend_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "graph_legend", 0, 0,
|
||||
WC_GRAPH_LEGEND, WC_NONE,
|
||||
0,
|
||||
@@ -654,7 +654,7 @@ static const NWidgetPart _nested_operating_profit_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _operating_profit_desc(
|
||||
static WindowDesc _operating_profit_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "graph_operating_profit", 0, 0,
|
||||
WC_OPERATING_PROFIT, WC_NONE,
|
||||
0,
|
||||
@@ -705,7 +705,7 @@ static const NWidgetPart _nested_income_graph_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _income_graph_desc(
|
||||
static WindowDesc _income_graph_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "graph_income", 0, 0,
|
||||
WC_INCOME_GRAPH, WC_NONE,
|
||||
0,
|
||||
@@ -754,7 +754,7 @@ static const NWidgetPart _nested_delivered_cargo_graph_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _delivered_cargo_graph_desc(
|
||||
static WindowDesc _delivered_cargo_graph_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "graph_delivered_cargo", 0, 0,
|
||||
WC_DELIVERED_CARGO, WC_NONE,
|
||||
0,
|
||||
@@ -810,7 +810,7 @@ static const NWidgetPart _nested_performance_history_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _performance_history_desc(
|
||||
static WindowDesc _performance_history_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "graph_performance", 0, 0,
|
||||
WC_PERFORMANCE_HISTORY, WC_NONE,
|
||||
0,
|
||||
@@ -859,7 +859,7 @@ static const NWidgetPart _nested_company_value_graph_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _company_value_graph_desc(
|
||||
static WindowDesc _company_value_graph_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "graph_company_value", 0, 0,
|
||||
WC_COMPANY_VALUE, WC_NONE,
|
||||
0,
|
||||
@@ -1093,7 +1093,7 @@ static const NWidgetPart _nested_cargo_payment_rates_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _cargo_payment_rates_desc(
|
||||
static WindowDesc _cargo_payment_rates_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "graph_cargo_payment_rates", 0, 0,
|
||||
WC_PAYMENT_RATES, WC_NONE,
|
||||
0,
|
||||
@@ -1389,7 +1389,7 @@ static const NWidgetPart _nested_performance_rating_detail_widgets[] = {
|
||||
NWidgetFunction(MakePerformanceDetailPanels),
|
||||
};
|
||||
|
||||
static WindowDesc _performance_rating_detail_desc(
|
||||
static WindowDesc _performance_rating_detail_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "league_details", 0, 0,
|
||||
WC_PERFORMANCE_DETAIL, WC_NONE,
|
||||
0,
|
||||
|
Reference in New Issue
Block a user