From 4478b9bc9a410b4753e9ff2fe18ab63a398188ba Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 14 Mar 2017 18:03:36 -0400 Subject: [PATCH] SI_DeviceKeyboard: In-class initialize variables --- Source/Core/Core/HW/SI/SI_DeviceKeyboard.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Core/Core/HW/SI/SI_DeviceKeyboard.h b/Source/Core/Core/HW/SI/SI_DeviceKeyboard.h index a0311af715..1eba042cdb 100644 --- a/Source/Core/Core/HW/SI/SI_DeviceKeyboard.h +++ b/Source/Core/Core/HW/SI/SI_DeviceKeyboard.h @@ -28,7 +28,7 @@ protected: union UCommand { - u32 Hex; + u32 Hex = 0; struct { u32 Parameter1 : 8; @@ -36,15 +36,15 @@ protected: u32 Command : 8; u32 : 8; }; - UCommand() { Hex = 0; } - UCommand(u32 _iValue) { Hex = _iValue; } + UCommand() = default; + UCommand(u32 value) : Hex{value} {} }; // PADAnalogMode - u8 m_Mode; + u8 m_Mode = 0; // Internal counter synchonizing GC and keyboard - u8 m_Counter; + u8 m_Counter = 0; public: // Constructor