forked from mirror/OpenTTD
Codechange: use std::source_location over __FILE__ and __LINE__ for WindowDesc
This commit is contained in:
@@ -339,7 +339,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static WindowDesc _town_authority_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _town_authority_desc(
|
||||
WDP_AUTO, "view_town_authority", 317, 222,
|
||||
WC_TOWN_AUTHORITY, WC_NONE,
|
||||
0,
|
||||
@@ -633,7 +633,7 @@ static constexpr NWidgetPart _nested_town_game_view_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _town_game_view_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _town_game_view_desc(
|
||||
WDP_AUTO, "view_town", 260, TownViewWindow::WID_TV_HEIGHT_NORMAL,
|
||||
WC_TOWN_VIEW, WC_NONE,
|
||||
0,
|
||||
@@ -664,7 +664,7 @@ static constexpr NWidgetPart _nested_town_editor_view_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _town_editor_view_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _town_editor_view_desc(
|
||||
WDP_AUTO, "view_town_scen", 260, TownViewWindow::WID_TV_HEIGHT_NORMAL,
|
||||
WC_TOWN_VIEW, WC_NONE,
|
||||
0,
|
||||
@@ -1060,7 +1060,7 @@ GUITownList::SortFunction * const TownDirectoryWindow::sorter_funcs[] = {
|
||||
&TownRatingSorter,
|
||||
};
|
||||
|
||||
static WindowDesc _town_directory_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _town_directory_desc(
|
||||
WDP_AUTO, "list_towns", 208, 202,
|
||||
WC_TOWN_DIRECTORY, WC_NONE,
|
||||
0,
|
||||
@@ -1294,7 +1294,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static WindowDesc _found_town_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _found_town_desc(
|
||||
WDP_AUTO, "build_town", 160, 162,
|
||||
WC_FOUND_TOWN, WC_NONE,
|
||||
WDF_CONSTRUCTION,
|
||||
|
Reference in New Issue
Block a user