BTEmu: Make WriteToEndpoint's reference parameter const
This function doesn't modify anything being referenced.
This commit is contained in:
parent
971972069c
commit
bc8f932f0c
|
@ -390,7 +390,7 @@ void BluetoothEmu::ACLPool::Store(const u8* data, const u16 size, const u16 conn
|
||||||
packet.conn_handle = conn_handle;
|
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();
|
auto& packet = m_queue.front();
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ private:
|
||||||
explicit ACLPool(Kernel& ios) : m_ios(ios), m_queue() {}
|
explicit ACLPool(Kernel& ios) : m_ios(ios), m_queue() {}
|
||||||
void Store(const u8* data, const u16 size, const u16 conn_handle);
|
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(); }
|
bool IsEmpty() const { return m_queue.empty(); }
|
||||||
// For SaveStates
|
// For SaveStates
|
||||||
|
|
Loading…
Reference in New Issue