From 34768617d2b8d686ad095056baae1ef2e3d52c8a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 23 Jan 2017 01:21:09 -0500 Subject: [PATCH] Attachment: Make constructors explicit where applicable --- Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h | 2 +- Source/Core/Core/HW/WiimoteEmu/Attachment/Classic.h | 2 +- Source/Core/Core/HW/WiimoteEmu/Attachment/Drums.h | 2 +- Source/Core/Core/HW/WiimoteEmu/Attachment/Guitar.h | 2 +- Source/Core/Core/HW/WiimoteEmu/Attachment/Nunchuk.h | 2 +- Source/Core/Core/HW/WiimoteEmu/Attachment/Turntable.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h b/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h index f1cffa44c3..7d5361795a 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h +++ b/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h @@ -39,6 +39,6 @@ private: class None : public Attachment { public: - None(ExtensionReg& reg); + explicit None(ExtensionReg& reg); }; } // namespace WiimoteEmu diff --git a/Source/Core/Core/HW/WiimoteEmu/Attachment/Classic.h b/Source/Core/Core/HW/WiimoteEmu/Attachment/Classic.h index cb91969b44..ac621859f6 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Attachment/Classic.h +++ b/Source/Core/Core/HW/WiimoteEmu/Attachment/Classic.h @@ -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; diff --git a/Source/Core/Core/HW/WiimoteEmu/Attachment/Drums.h b/Source/Core/Core/HW/WiimoteEmu/Attachment/Drums.h index 75c201b9be..993a3e597b 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Attachment/Drums.h +++ b/Source/Core/Core/HW/WiimoteEmu/Attachment/Drums.h @@ -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; diff --git a/Source/Core/Core/HW/WiimoteEmu/Attachment/Guitar.h b/Source/Core/Core/HW/WiimoteEmu/Attachment/Guitar.h index b0455a36c1..18549362c1 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Attachment/Guitar.h +++ b/Source/Core/Core/HW/WiimoteEmu/Attachment/Guitar.h @@ -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; diff --git a/Source/Core/Core/HW/WiimoteEmu/Attachment/Nunchuk.h b/Source/Core/Core/HW/WiimoteEmu/Attachment/Nunchuk.h index 2071b19815..426d65afd2 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Attachment/Nunchuk.h +++ b/Source/Core/Core/HW/WiimoteEmu/Attachment/Nunchuk.h @@ -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; diff --git a/Source/Core/Core/HW/WiimoteEmu/Attachment/Turntable.h b/Source/Core/Core/HW/WiimoteEmu/Attachment/Turntable.h index 5985f47180..7f917b3189 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Attachment/Turntable.h +++ b/Source/Core/Core/HW/WiimoteEmu/Attachment/Turntable.h @@ -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;