WiimoteDevice: Make CBigEndianBuffer's constructor explicit

Prevents implicit construction of buffers.
This commit is contained in:
Lioncash 2018-06-02 15:10:48 -04:00
parent 4601136b08
commit f6c4c05d93
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ namespace HLE
class CBigEndianBuffer
{
public:
CBigEndianBuffer(u8* pBuffer) : m_pBuffer(pBuffer) {}
explicit CBigEndianBuffer(u8* pBuffer) : m_pBuffer(pBuffer) {}
u8 Read8(u32 offset) const { return m_pBuffer[offset]; }
u16 Read16(u32 offset) const { return Common::swap16(&m_pBuffer[offset]); }
u32 Read32(u32 offset) const { return Common::swap32(&m_pBuffer[offset]); }