Permalink
Browse files

BTEmu: Make WriteToEndpoint's reference parameter const

This function doesn't modify anything being referenced.
  • Loading branch information...
lioncash committed Jun 23, 2018
1 parent 9719720 commit bc8f932f0c179297df21427005e2504c114241e0
Showing with 2 additions and 2 deletions.
  1. +1 −1 Source/Core/Core/IOS/USB/Bluetooth/BTEmu.cpp
  2. +1 −1 Source/Core/Core/IOS/USB/Bluetooth/BTEmu.h
@@ -390,7 +390,7 @@ void BluetoothEmu::ACLPool::Store(const u8* data, const u16 size, const u16 conn
packet.conn_handle = conn_handle;
}
void BluetoothEmu::ACLPool::WriteToEndpoint(USB::V0BulkMessage& endpoint)
void BluetoothEmu::ACLPool::WriteToEndpoint(const USB::V0BulkMessage& endpoint)
{
auto& packet = m_queue.front();
@@ -79,7 +79,7 @@ class BluetoothEmu final : public BluetoothBase
explicit ACLPool(Kernel& ios) : m_ios(ios), m_queue() {}
void Store(const u8* data, const u16 size, const u16 conn_handle);
void WriteToEndpoint(USB::V0BulkMessage& endpoint);
void WriteToEndpoint(const USB::V0BulkMessage& endpoint);
bool IsEmpty() const { return m_queue.empty(); }
// For SaveStates

0 comments on commit bc8f932

Please sign in to comment.