Codechange: Add __FILE__/__LINE__ of WindowDesc to WindowDesc.
This is to allow unit-tests to produce more useful output.
This commit is contained in:

committed by
Peter Nelson

parent
873f93cab1
commit
18fb8e153f
@@ -1015,14 +1015,14 @@ struct GenerateLandscapeWindow : public Window {
|
||||
}
|
||||
};
|
||||
|
||||
static WindowDesc _generate_landscape_desc(
|
||||
static WindowDesc _generate_landscape_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_GENERATE_LANDSCAPE, WC_NONE,
|
||||
0,
|
||||
std::begin(_nested_generate_landscape_widgets), std::end(_nested_generate_landscape_widgets)
|
||||
);
|
||||
|
||||
static WindowDesc _heightmap_load_desc(
|
||||
static WindowDesc _heightmap_load_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_GENERATE_LANDSCAPE, WC_NONE,
|
||||
0,
|
||||
@@ -1312,7 +1312,7 @@ static const NWidgetPart _nested_create_scenario_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _create_scenario_desc(
|
||||
static WindowDesc _create_scenario_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_GENERATE_LANDSCAPE, WC_NONE,
|
||||
0,
|
||||
@@ -1338,7 +1338,7 @@ static const NWidgetPart _nested_generate_progress_widgets[] = {
|
||||
};
|
||||
|
||||
|
||||
static WindowDesc _generate_progress_desc(
|
||||
static WindowDesc _generate_progress_desc(__FILE__, __LINE__,
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_MODAL_PROGRESS, WC_NONE,
|
||||
0,
|
||||
|
Reference in New Issue
Block a user