Codechange: use std::source_location over __FILE__ and __LINE__ for WindowDesc
This commit is contained in:
@@ -199,7 +199,7 @@ static constexpr NWidgetPart _nested_performance_league_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _performance_league_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _performance_league_desc(
|
||||
WDP_AUTO, "performance_league", 0, 0,
|
||||
WC_COMPANY_LEAGUE, WC_NONE,
|
||||
0,
|
||||
@@ -434,7 +434,7 @@ static constexpr NWidgetPart _nested_script_league_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _script_league_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _script_league_desc(
|
||||
WDP_AUTO, "script_league", 0, 0,
|
||||
WC_COMPANY_LEAGUE, WC_NONE,
|
||||
0,
|
||||
|
Reference in New Issue
Block a user