mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-28 06:34:33 +01:00
Codechange: Pass WindowDesc by reference instead of pointer. (#12771)
WindowDesc as passed to Windows is not optional so don't allow to it to be nullptr.
This commit is contained in:
@@ -211,7 +211,7 @@ enum {
|
||||
|
||||
struct MainWindow : Window
|
||||
{
|
||||
MainWindow(WindowDesc *desc) : Window(desc)
|
||||
MainWindow(WindowDesc &desc) : Window(desc)
|
||||
{
|
||||
this->InitNested(0);
|
||||
CLRBITS(this->flags, WF_WHITE_BORDER);
|
||||
@@ -548,7 +548,7 @@ void SetupColoursAndInitialWindow()
|
||||
}
|
||||
}
|
||||
|
||||
new MainWindow(&_main_window_desc);
|
||||
new MainWindow(_main_window_desc);
|
||||
|
||||
/* XXX: these are not done */
|
||||
switch (_game_mode) {
|
||||
|
||||
Reference in New Issue
Block a user