summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2018-06-23 09:11:42 +0200
committerGitHub <noreply@github.com>2018-06-23 09:11:42 +0200
commitbdfb72cfdbf4958073bd32e8e4d72a5e7d8b2c10 (patch)
treebe44348f0da190b5b6cdfb214f537784215e7afa /Source/Core
parent971972069cc2813ee7fa5b630c67baab2b35d12d (diff)
parentbc8f932f0c179297df21427005e2504c114241e0 (diff)
Merge pull request #7162 from lioncash/const
BTEmu: Make WriteToEndpoint's reference parameter const
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/IOS/USB/Bluetooth/BTEmu.cpp2
-rw-r--r--Source/Core/Core/IOS/USB/Bluetooth/BTEmu.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.cpp b/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.cpp
index ba79a1e7ed..806151bbd4 100644
--- a/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.cpp
+++ b/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.cpp
@@ -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();
diff --git a/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.h b/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.h
index f882eb2299..0f7a5686b0 100644
--- a/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.h
+++ b/Source/Core/Core/IOS/USB/Bluetooth/BTEmu.h
@@ -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