From 4d2938f3b62d6a21fe150fb944cede213a4994ec Mon Sep 17 00:00:00 2001 From: Josh Wu Date: Tue, 15 Feb 2022 09:21:10 -0800 Subject: [PATCH] BtAudio: Iterate reference in VTS helper Test: atest VtsHalBluetoothAudioTargetTest Bug: 203490261 Change-Id: Ie640c2444e523984a04378b96916d0a3e63f49cd --- bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); if (a2dp_capabilities.codecType != codec_type) {