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

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_connection.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_connection.cc
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_connection.cc b/components/proximity_auth/ble/bluetooth_low_energy_connection.cc
index af6474948da29edac7217010dc358e5315bdb71c..df1419202df056c691cd14a70f17c3bb96832af7 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_connection.cc
+++ b/components/proximity_auth/ble/bluetooth_low_energy_connection.cc
@@ -559,7 +559,7 @@ BluetoothDevice* BluetoothLowEnergyConnection::GetRemoteDevice() {
// bug in the way device::BluetoothAdapter is storing the devices (see
// crbug.com/497841).
std::vector<BluetoothDevice*> devices = adapter_->GetDevices();
- for (const auto& device : devices) {
+ for (auto* device : devices) {
if (device->GetAddress() == GetDeviceAddress())
return device;
}
@@ -576,7 +576,7 @@ BluetoothRemoteGattService* BluetoothLowEnergyConnection::GetRemoteService() {
if (remote_service_.id.empty()) {
std::vector<BluetoothRemoteGattService*> services =
remote_device->GetGattServices();
- for (const auto& service : services)
+ for (const auto* service : services)
if (service->GetUUID() == remote_service_.uuid) {
remote_service_.id = service->GetIdentifier();
break;

Powered by Google App Engine
This is Rietveld 408576698