Index: components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.cc |
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.cc b/components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.cc |
index abb7414205a668d9b3c4c52fd78775c0d193a0e2..fdfd2862b6b9a99b62e3dfd6635dd95ba27fc03a 100644 |
--- a/components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.cc |
+++ b/components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.cc |
@@ -91,14 +91,14 @@ void BluetoothLowEnergyCharacteristicsFinder::ScanRemoteCharacteristics( |
device->GetGattServices(); |
PA_LOG(INFO) << device->GetAddress() << " has " << services.size() |
<< " services."; |
- for (const auto& service : services) { |
+ for (const auto* service : services) { |
if (service->GetUUID() == service_uuid) { |
// Right service found, now scaning its characteristics. |
std::vector<device::BluetoothRemoteGattCharacteristic*> |
characteristics = service->GetCharacteristics(); |
PA_LOG(INFO) << "Service " << service_uuid.canonical_value() << " has " |
<< characteristics.size() << " characteristics."; |
- for (const auto& characteristic : characteristics) { |
+ for (auto* characteristic : characteristics) { |
HandleCharacteristicUpdate(characteristic); |
} |
break; |