mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-18 00:09:11 +00:00
WiimoteDevice: Make CBigEndianBuffer's constructor explicit
Prevents implicit construction of buffers.
This commit is contained in:
parent
4601136b08
commit
f6c4c05d93
1 changed files with 1 additions and 1 deletions
|
@ -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]); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue