Merge pull request #7162 from lioncash/const

BTEmu: Make WriteToEndpoint's reference parameter const
This commit is contained in:
JosJuice authored and GitHub committed 2018-06-23 09:11:42 +02:00
commit bdfb72cfdb
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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();
+1 -1
View File
@@ -79,7 +79,7 @@ private:
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