From 4b2f40a634ae76ca0e98898f847354da21b7bb9a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 22 Jan 2017 23:53:13 -0500 Subject: [PATCH] Attachment: Make class members non-public --- .../Core/Core/HW/WiimoteEmu/Attachment/Attachment.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h b/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h index 65fe781f9d..1a452ed292 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h +++ b/Source/Core/Core/HW/WiimoteEmu/Attachment/Attachment.h @@ -20,15 +20,16 @@ public: void Reset(); std::string GetName() const override; - const char* const name; - WiimoteEmu::ExtensionReg& reg; +protected: + // Default radius for attachment analog sticks. + static constexpr ControlState DEFAULT_ATTACHMENT_STICK_RADIUS = 1.0; u8 id[6]; u8 calibration[0x10]; -protected: - // Default radius for attachment analog sticks. - static constexpr ControlState DEFAULT_ATTACHMENT_STICK_RADIUS = 1.0; +private: + const char* const name; + WiimoteEmu::ExtensionReg& reg; }; class None : public Attachment