WiimoteEmu: Make constructor of Wiimote explicit

Prevents implicit conversions
This commit is contained in:
Lioncash 2018-07-12 15:56:36 -04:00
parent 5b58977561
commit 113a357604
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ public:
BUTTON_HOME = 0x8000,
};
Wiimote(unsigned int index);
explicit Wiimote(unsigned int index);
std::string GetName() const override;
ControllerEmu::ControlGroup* GetWiimoteGroup(WiimoteGroup group);
ControllerEmu::ControlGroup* GetNunchukGroup(NunchukGroup group);