Codechange: use std::source_location over __FILE__ and __LINE__ for WindowDesc
This commit is contained in:
@@ -955,7 +955,7 @@ static constexpr NWidgetPart _nested_network_game_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_game_window_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _network_game_window_desc(
|
||||
WDP_CENTER, "list_servers", 1000, 730,
|
||||
WC_NETWORK_WINDOW, WC_NONE,
|
||||
0,
|
||||
@@ -1222,7 +1222,7 @@ static constexpr NWidgetPart _nested_network_start_server_window_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_start_server_window_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _network_start_server_window_desc(
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_WINDOW, WC_NONE,
|
||||
0,
|
||||
@@ -1301,7 +1301,7 @@ static constexpr NWidgetPart _nested_client_list_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _client_list_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _client_list_desc(
|
||||
WDP_AUTO, "list_clients", 220, 300,
|
||||
WC_CLIENT_LIST, WC_NONE,
|
||||
0,
|
||||
@@ -2223,7 +2223,7 @@ static constexpr NWidgetPart _nested_network_join_status_window_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_join_status_window_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _network_join_status_window_desc(
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_STATUS_WINDOW, WC_NONE,
|
||||
WDF_MODAL,
|
||||
@@ -2345,7 +2345,7 @@ static constexpr NWidgetPart _nested_network_company_password_window_widgets[] =
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_company_password_window_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _network_company_password_window_desc(
|
||||
WDP_AUTO, nullptr, 0, 0,
|
||||
WC_COMPANY_PASSWORD_WINDOW, WC_NONE,
|
||||
0,
|
||||
@@ -2454,7 +2454,7 @@ static constexpr NWidgetPart _nested_network_ask_relay_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_ask_relay_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _network_ask_relay_desc(
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_ASK_RELAY, WC_NONE,
|
||||
WDF_MODAL,
|
||||
@@ -2552,7 +2552,7 @@ static constexpr NWidgetPart _nested_network_ask_survey_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _network_ask_survey_desc(__FILE__, __LINE__,
|
||||
static WindowDesc _network_ask_survey_desc(
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_NETWORK_ASK_SURVEY, WC_NONE,
|
||||
WDF_MODAL,
|
||||
|
||||
Reference in New Issue
Block a user