Removing positional union initialisation (#6918)

* Removing positional union initialisation

* udpated changelog
This commit is contained in:
Ignacio Rodríguez 2021-01-20 16:56:26 +07:00 committed by GitHub
parent 6cdd5a0583
commit ec79083753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -4,6 +4,7 @@ Bug fixes:
- #6900 Remaining SonarCloud reported bug items (test fixed)
- #6889 Systray Icon on Ubuntu Auto Start (take 2)
- #6910 Don't use the word “Version” for release names because it can lead to errors during update checking.
- #6918 Removing positional union initialisation
===========
v1.13.0-stable

View File

@ -1329,13 +1329,18 @@ KeyMap::Keystroke::Keystroke(KeyButton button,
bool press, bool repeat, UInt32 data) :
m_type(kButton), m_data{}
{
m_data.m_button = {button, press, repeat, data};
m_data.m_button.m_button = button;
m_data.m_button.m_press = press;
m_data.m_button.m_repeat = repeat;
m_data.m_button.m_client = data;
}
KeyMap::Keystroke::Keystroke(SInt32 group, bool absolute, bool restore) :
m_type(kGroup), m_data{}
{
m_data.m_group = {group, absolute, restore};
m_data.m_group.m_group = group;
m_data.m_group.m_absolute = absolute;
m_data.m_group.m_restore = restore;
}
}