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

Unified Diff: device/bluetooth/bluetooth_discovery_filter.cc

Issue 2108923002: device: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: device 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
« no previous file with comments | « device/bluetooth/bluetooth_adapter.cc ('k') | device/bluetooth/bluetooth_low_energy_win_fake.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_discovery_filter.cc
diff --git a/device/bluetooth/bluetooth_discovery_filter.cc b/device/bluetooth/bluetooth_discovery_filter.cc
index 19e7dbec131b94500ac76880f9e5af5b1b71c086..f853848cd27731726148bc3366551c716d6777a5 100644
--- a/device/bluetooth/bluetooth_discovery_filter.cc
+++ b/device/bluetooth/bluetooth_discovery_filter.cc
@@ -63,13 +63,13 @@ void BluetoothDiscoveryFilter::GetUUIDs(
std::set<device::BluetoothUUID>& out_uuids) const {
out_uuids.clear();
- for (auto& uuid : uuids_)
+ for (auto* uuid : uuids_)
out_uuids.insert(*uuid);
}
void BluetoothDiscoveryFilter::AddUUID(const device::BluetoothUUID& uuid) {
DCHECK(uuid.IsValid());
- for (auto& uuid_it : uuids_) {
+ for (auto* uuid_it : uuids_) {
if (*uuid_it == uuid)
return;
}
@@ -82,7 +82,7 @@ void BluetoothDiscoveryFilter::CopyFrom(
transport_ = filter.transport_;
if (filter.uuids_.size()) {
- for (auto& uuid : filter.uuids_)
+ for (auto* uuid : filter.uuids_)
AddUUID(*uuid);
} else
uuids_.clear();
« no previous file with comments | « device/bluetooth/bluetooth_adapter.cc ('k') | device/bluetooth/bluetooth_low_energy_win_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698