summaryrefslogtreecommitdiff
path: root/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp
diff options
context:
space:
mode:
authorJosh Wu <joshwu@google.com>2022-02-15 09:21:10 -0800
committerJosh Wu <joshwu@google.com>2022-02-15 09:21:17 -0800
commit4d2938f3b62d6a21fe150fb944cede213a4994ec (patch)
treec0717ef198c0eed5005a3f6baaf010e7f320c848 /bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp
parentfd4d63ff511445552cde21b2a9cd32ba890acdbe (diff)
BtAudio: Iterate reference in VTS helper
Test: atest VtsHalBluetoothAudioTargetTest Bug: 203490261 Change-Id: Ie640c2444e523984a04378b96916d0a3e63f49cd
Diffstat (limited to 'bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp')
-rw-r--r--bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp b/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp
index 307403b451..f14bff5fb3 100644
--- a/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp
+++ b/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp
@@ -417,7 +417,7 @@ class BluetoothAudioProviderA2dpHardwareAidl
void GetA2dpOffloadCapabilityHelper(const CodecType& codec_type) {
temp_codec_capabilities_ = nullptr;
- for (auto codec_capability : temp_provider_capabilities_) {
+ for (auto& codec_capability : temp_provider_capabilities_) {
auto& a2dp_capabilities =
codec_capability.get<AudioCapabilities::a2dpCapabilities>();
if (a2dp_capabilities.codecType != codec_type) {