Add missing member variable initializations

This commit is contained in:
Tobias Junghans
2020-10-23 10:49:03 +02:00
parent 2b9cb5c58c
commit 1d429a9bc6
6 changed files with 19 additions and 21 deletions

View File

@@ -44,18 +44,18 @@ public:
EventData();
//keyboard
Display *dpy;
signed char modifiers[0x100];
KeyCode keycodes[0x100];
KeyCode leftShiftCode;
KeyCode rightShiftCode;
KeyCode altGrCode;
char modifierState;
Display *dpy = nullptr;
signed char modifiers[0x100] = {};
KeyCode keycodes[0x100] = {};
KeyCode leftShiftCode = 0;
KeyCode rightShiftCode = 0;
KeyCode altGrCode = 0;
char modifierState = 0;
//mouse
int buttonMask;
int x;
int y;
int buttonMask = 0;
int x = 0;
int y = 0;
private:
void init();