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
@@ -326,7 +326,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static WindowDesc _town_authority_desc(
|
||||
static WindowDesc _town_authority_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "view_town_authority", 317, 222,
|
||||
WC_TOWN_AUTHORITY, WC_NONE,
|
||||
0,
|
||||
@@ -619,7 +619,7 @@ static const NWidgetPart _nested_town_game_view_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _town_game_view_desc(
|
||||
static WindowDesc _town_game_view_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "view_town", 260, TownViewWindow::WID_TV_HEIGHT_NORMAL,
|
||||
WC_TOWN_VIEW, WC_NONE,
|
||||
0,
|
||||
@@ -650,7 +650,7 @@ static const NWidgetPart _nested_town_editor_view_widgets[] = {
|
||||
EndContainer(),
|
||||
};
|
||||
|
||||
static WindowDesc _town_editor_view_desc(
|
||||
static WindowDesc _town_editor_view_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "view_town_scen", 260, TownViewWindow::WID_TV_HEIGHT_NORMAL,
|
||||
WC_TOWN_VIEW, WC_NONE,
|
||||
0,
|
||||
@@ -1025,7 +1025,7 @@ GUITownList::SortFunction * const TownDirectoryWindow::sorter_funcs[] = {
|
||||
&TownRatingSorter,
|
||||
};
|
||||
|
||||
static WindowDesc _town_directory_desc(
|
||||
static WindowDesc _town_directory_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "list_towns", 208, 202,
|
||||
WC_TOWN_DIRECTORY, WC_NONE,
|
||||
0,
|
||||
@@ -1275,7 +1275,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static WindowDesc _found_town_desc(
|
||||
static WindowDesc _found_town_desc(__FILE__, __LINE__,
|
||||
WDP_AUTO, "build_town", 160, 162,
|
||||
WC_FOUND_TOWN, WC_NONE,
|
||||
WDF_CONSTRUCTION,
|
||||
|
Reference in New Issue
Block a user