forked from mirror/OpenTTD
Codechange: Add __FILE__/__LINE__ of WindowDesc to WindowDesc.
This is to allow unit-tests to produce more useful output.
This commit is contained in:
@@ -102,9 +102,11 @@ static std::vector<WindowDesc*> *_window_descs = nullptr;
|
||||
std::string _windows_file;
|
||||
|
||||
/** Window description constructor. */
|
||||
WindowDesc::WindowDesc(WindowPosition def_pos, const char *ini_key, int16_t def_width_trad, int16_t def_height_trad,
|
||||
WindowDesc::WindowDesc(const char * const file, const int line, WindowPosition def_pos, const char *ini_key, int16_t def_width_trad, int16_t def_height_trad,
|
||||
WindowClass window_class, WindowClass parent_class, uint32_t flags,
|
||||
const NWidgetPart *nwid_begin, const NWidgetPart *nwid_end, HotkeyList *hotkeys) :
|
||||
file(file),
|
||||
line(line),
|
||||
default_pos(def_pos),
|
||||
cls(window_class),
|
||||
parent_cls(parent_class),
|
||||
|
Reference in New Issue
Block a user