summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-02-16 07:22:55 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-02-16 07:22:55 +0000
commit76adba3e2770eafb9fbeb7cad06b655ae384b84a (patch)
tree83cd071a90e3aa92f392de87ff762ae62de08ff6
parent687ffed8f60fe1327c19c74d20b65d701db857f6 (diff)
parent4d2938f3b62d6a21fe150fb944cede213a4994ec (diff)
Merge "BtAudio: Iterate reference in VTS helper"
-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 64c601aca4..4454cc34df 100644
--- a/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp
+++ b/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp
@@ -419,7 +419,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) {