From 94fd8505d612e27bb919f145a42934bc80d40c1f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 9 Jun 2018 15:52:31 -0400 Subject: [PATCH] WiimoteDevice: Make DoesChannelExist() a const member function This only queries internal class state, it doesn't modify it. --- Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.h b/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.h index c1eef851cc..61c334a4d9 100644 --- a/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.h +++ b/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.h @@ -96,7 +96,7 @@ private: typedef std::map CChannelMap; CChannelMap m_Channel; - bool DoesChannelExist(u16 _SCID) { return m_Channel.find(_SCID) != m_Channel.end(); } + bool DoesChannelExist(u16 scid) const { return m_Channel.find(scid) != m_Channel.end(); } void SendCommandToACL(u8 _Ident, u8 _Code, u8 _CommandLength, u8* _pCommandData); void SignalChannel(u8* _pData, u32 _Size);