WiimoteDevice: Make CBigEndianBuffer's constructor explicit
Prevents implicit construction of buffers.
This commit is contained in:
1 parent
4601136b08
commit
f6c4c05d93
1 file changed
+1
-1
@@ -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]); }
|
||||
|
||||
Reference in new issue
Block a user