EXI_DeviceAD16: In-class initialize member variables

Same thing, less code.
This commit is contained in:
Lioncash 2017-02-07 14:54:50 -05:00
parent 3cda4e1d9c
commit 2f74a6f552
2 changed files with 4 additions and 7 deletions

View File

@ -8,10 +8,7 @@
#include "Common/ChunkFile.h"
#include "Common/CommonTypes.h"
CEXIAD16::CEXIAD16() : m_uPosition(0), m_uCommand(0)
{
m_uAD16Register.U32 = 0x00;
}
CEXIAD16::CEXIAD16() = default;
void CEXIAD16::SetCS(int cs)
{

View File

@ -26,13 +26,13 @@ private:
union UAD16Reg
{
u32 U32;
u32 U32 = 0;
u32 U8[4];
};
// STATE_TO_SAVE
u32 m_uPosition;
u32 m_uCommand;
u32 m_uPosition = 0;
u32 m_uCommand = 0;
UAD16Reg m_uAD16Register;
void TransferByte(u8& _uByte) override;