Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.cc

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+one fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698