WiimoteDevice: Make CBigEndianBuffer's constructor explicit
Prevents implicit construction of buffers.
This commit is contained in:
parent
4601136b08
commit
f6c4c05d93
|
@ -30,7 +30,7 @@ namespace HLE
|
||||||
class CBigEndianBuffer
|
class CBigEndianBuffer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CBigEndianBuffer(u8* pBuffer) : m_pBuffer(pBuffer) {}
|
explicit CBigEndianBuffer(u8* pBuffer) : m_pBuffer(pBuffer) {}
|
||||||
u8 Read8(u32 offset) const { return m_pBuffer[offset]; }
|
u8 Read8(u32 offset) const { return m_pBuffer[offset]; }
|
||||||
u16 Read16(u32 offset) const { return Common::swap16(&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]); }
|
u32 Read32(u32 offset) const { return Common::swap32(&m_pBuffer[offset]); }
|
||||||
|
|
Loading…
Reference in New Issue