g13d: Fix a bunch of initialization order errors

The initializers were in the wrong order.
This commit is contained in:
June Tate-Gans 2021-04-25 14:33:12 -05:00
parent 65ab987a87
commit d391b647b6

View File

@ -346,8 +346,8 @@ void G13_Device::read_commands() {
G13_Device::G13_Device(G13_Manager &manager, libusb_device_handle *handle,
int _id)
: _manager(manager), _lcd(*this), _stick(*this), handle(handle),
_id_within_manager(_id), _uinput_fid(-1), ctx(0) {
: _id_within_manager(_id), handle(handle), ctx(0), _uinput_fid(-1),
_manager(manager), _lcd(*this), _stick(*this) {
_current_profile = ProfilePtr(new G13_Profile(*this, "default"));
_profiles["default"] = _current_profile;
@ -657,7 +657,7 @@ void G13_Device::command(char const *str) {
}
}
G13_Manager::G13_Manager() : ctx(0), devs(0) {}
G13_Manager::G13_Manager() : devs(0), ctx(0) {}
// *************************************************************************