Attachment: Make constructors explicit where applicable

This commit is contained in:
Lioncash 2017-01-23 01:21:09 -05:00
parent 34262ee3d8
commit 34768617d2
6 changed files with 6 additions and 6 deletions

View File

@ -39,6 +39,6 @@ private:
class None : public Attachment
{
public:
None(ExtensionReg& reg);
explicit None(ExtensionReg& reg);
};
} // namespace WiimoteEmu

View File

@ -14,7 +14,7 @@ struct ExtensionReg;
class Classic : public Attachment
{
public:
Classic(ExtensionReg& reg);
explicit Classic(ExtensionReg& reg);
void GetState(u8* const data) override;
bool IsButtonPressed() const override;

View File

@ -14,7 +14,7 @@ struct ExtensionReg;
class Drums : public Attachment
{
public:
Drums(ExtensionReg& reg);
explicit Drums(ExtensionReg& reg);
void GetState(u8* const data) override;
bool IsButtonPressed() const override;

View File

@ -14,7 +14,7 @@ struct ExtensionReg;
class Guitar : public Attachment
{
public:
Guitar(ExtensionReg& reg);
explicit Guitar(ExtensionReg& reg);
void GetState(u8* const data) override;
bool IsButtonPressed() const override;

View File

@ -15,7 +15,7 @@ struct ExtensionReg;
class Nunchuk : public Attachment
{
public:
Nunchuk(ExtensionReg& reg);
explicit Nunchuk(ExtensionReg& reg);
void GetState(u8* const data) override;
bool IsButtonPressed() const override;

View File

@ -14,7 +14,7 @@ struct ExtensionReg;
class Turntable : public Attachment
{
public:
Turntable(ExtensionReg& reg);
explicit Turntable(ExtensionReg& reg);
void GetState(u8* const data) override;
bool IsButtonPressed() const override;