A bunch of trivial changes to fix clang warnings.

This commit is contained in:
comex
2013-08-29 01:33:24 -04:00
parent d41eb76378
commit fd7cf5bb71
26 changed files with 20 additions and 37 deletions

View File

@ -26,7 +26,7 @@ private:
public:
std::string GetName() const;
bool IsDetectable() { return false; }
Cursor(u8 index, const float& axis, const bool positive) : m_index(index), m_axis(axis), m_positive(positive) {}
Cursor(u8 index, const float& axis, const bool positive) : m_axis(axis), m_index(index), m_positive(positive) {}
ControlState GetState() const;
private:
const float& m_axis;
@ -37,7 +37,7 @@ private:
{
public:
std::string GetName() const;
Button(u8 index, const unsigned char& button) : m_index(index), m_button(button) {}
Button(u8 index, const unsigned char& button) : m_button(button), m_index(index) {}
ControlState GetState() const;
private:
const unsigned char& m_button;
@ -63,7 +63,6 @@ private:
const IOHIDDeviceRef m_device;
const std::string m_device_name;
int m_index;
void *m_window;
uint32_t m_windowid;
unsigned char m_mousebuttons[3];
};

View File

@ -16,7 +16,6 @@ Keyboard::Keyboard(IOHIDDeviceRef device, std::string name, int index, void *win
: m_device(device)
, m_device_name(name)
, m_index(index)
, m_window(window)
{
// This class should only recieve Keyboard or Keypad devices
// Now, filter on just the buttons we can handle sanely