From d391b647b6d9c82c16893c59691db0f38cc78517 Mon Sep 17 00:00:00 2001
From: June Tate-Gans <june@theonelab.com>
Date: Sun, 25 Apr 2021 14:33:12 -0500
Subject: [PATCH] g13d: Fix a bunch of initialization order errors

The initializers were in the wrong order.
---
 g13d/g13.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/g13d/g13.cc b/g13d/g13.cc
index fde41a4..0d68910 100644
--- a/g13d/g13.cc
+++ b/g13d/g13.cc
@@ -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) {}
 
 // *************************************************************************