1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-30 15:44:31 +01:00

Codechange: explicitly initialise member variables of Windows

This commit is contained in:
Rubidium
2025-02-22 19:35:41 +01:00
committed by rubidium42
parent af32ce3710
commit c540c2bcf7
10 changed files with 110 additions and 135 deletions

View File

@@ -35,12 +35,12 @@ enum KeyStateBits : uint8_t {
static uint8_t _keystate = KEYS_NONE;
struct OskWindow : public Window {
StringID caption; ///< the caption for this window.
QueryString *qs; ///< text-input
WidgetID text_btn; ///< widget number of parent's text field
Textbuf *text; ///< pointer to parent's textbuffer (to update caret position)
std::string orig_str; ///< Original string.
bool shift; ///< Is the shift effectively pressed?
StringID caption{}; ///< the caption for this window.
QueryString *qs = nullptr; ///< text-input
WidgetID text_btn{}; ///< widget number of parent's text field
Textbuf *text = nullptr; ///< pointer to parent's textbuffer (to update caret position)
std::string orig_str{}; ///< Original string.
bool shift = false; ///< Is the shift effectively pressed?
OskWindow(WindowDesc &desc, Window *parent, WidgetID button) : Window(desc)
{