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

@@ -851,7 +851,7 @@ static constexpr NWidgetPart _nested_build_road_widgets[] = {
EndContainer(),
};
static WindowDesc _build_road_desc(__FILE__, __LINE__,
static WindowDesc _build_road_desc(
WDP_ALIGN_TOOLBAR, "toolbar_road", 0, 0,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
@@ -892,7 +892,7 @@ static constexpr NWidgetPart _nested_build_tramway_widgets[] = {
EndContainer(),
};
static WindowDesc _build_tramway_desc(__FILE__, __LINE__,
static WindowDesc _build_tramway_desc(
WDP_ALIGN_TOOLBAR, "toolbar_tramway", 0, 0,
WC_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
@@ -947,7 +947,7 @@ static constexpr NWidgetPart _nested_build_road_scen_widgets[] = {
EndContainer(),
};
static WindowDesc _build_road_scen_desc(__FILE__, __LINE__,
static WindowDesc _build_road_scen_desc(
WDP_AUTO, "toolbar_road_scen", 0, 0,
WC_SCEN_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
@@ -982,7 +982,7 @@ static constexpr NWidgetPart _nested_build_tramway_scen_widgets[] = {
EndContainer(),
};
static WindowDesc _build_tramway_scen_desc(__FILE__, __LINE__,
static WindowDesc _build_tramway_scen_desc(
WDP_AUTO, "toolbar_tram_scen", 0, 0,
WC_SCEN_BUILD_TOOLBAR, WC_NONE,
WDF_CONSTRUCTION,
@@ -1079,7 +1079,7 @@ static constexpr NWidgetPart _nested_build_road_depot_widgets[] = {
EndContainer(),
};
static WindowDesc _build_road_depot_desc(__FILE__, __LINE__,
static WindowDesc _build_road_depot_desc(
WDP_AUTO, nullptr, 0, 0,
WC_BUILD_DEPOT, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
@@ -1701,7 +1701,7 @@ static constexpr NWidgetPart _nested_road_station_picker_widgets[] = {
EndContainer(),
};
static WindowDesc _road_station_picker_desc(__FILE__, __LINE__,
static WindowDesc _road_station_picker_desc(
WDP_AUTO, "build_station_road", 0, 0,
WC_BUS_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,
@@ -1779,7 +1779,7 @@ static constexpr NWidgetPart _nested_tram_station_picker_widgets[] = {
EndContainer(),
};
static WindowDesc _tram_station_picker_desc(__FILE__, __LINE__,
static WindowDesc _tram_station_picker_desc(
WDP_AUTO, "build_station_tram", 0, 0,
WC_BUS_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION,