Codechange: use std::source_location over __FILE__ and __LINE__ for WindowDesc

This commit is contained in:
Rubidium
2024-01-17 04:17:02 +01:00
committed by rubidium42
parent e4b3f3f495
commit 86cb184eb4
64 changed files with 166 additions and 169 deletions

View File

@@ -891,7 +891,7 @@ static constexpr NWidgetPart _nested_build_rail_widgets[] = {
EndContainer(),
};
static WindowDesc _build_rail_desc(__FILE__, __LINE__,
static WindowDesc _build_rail_desc(
WDP_ALIGN_TOOLBAR, "toolbar_rail", 0, 0,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
@@ -1671,7 +1671,7 @@ static constexpr NWidgetPart _nested_station_builder_widgets[] = {
};
/** High level window description of the station-build window (default & newGRF) */
static WindowDesc _station_builder_desc(__FILE__, __LINE__,
static WindowDesc _station_builder_desc(
WDP_AUTO, "build_station_rail", 350, 0,
WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
@@ -1931,7 +1931,7 @@ static constexpr NWidgetPart _nested_signal_builder_widgets[] = {
};
/** Signal selection window description */
static WindowDesc _signal_builder_desc(__FILE__, __LINE__,
static WindowDesc _signal_builder_desc(
WDP_AUTO, nullptr, 0, 0,
WC_BUILD_SIGNAL, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
@@ -2012,7 +2012,7 @@ static constexpr NWidgetPart _nested_build_depot_widgets[] = {
EndContainer(),
};
static WindowDesc _build_depot_desc(__FILE__, __LINE__,
static WindowDesc _build_depot_desc(
WDP_AUTO, nullptr, 0, 0,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
@@ -2241,7 +2241,7 @@ static constexpr NWidgetPart _nested_build_waypoint_widgets[] = {
EndContainer(),
};
static WindowDesc _build_waypoint_desc(__FILE__, __LINE__,
static WindowDesc _build_waypoint_desc(
WDP_AUTO, "build_waypoint", 0, 0,
WC_BUILD_WAYPOINT, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,