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

Unified Diff: components/arc/bluetooth/arc_bluetooth_bridge.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
« no previous file with comments | « no previous file | components/arc/storage_manager/arc_storage_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/bluetooth/arc_bluetooth_bridge.cc
diff --git a/components/arc/bluetooth/arc_bluetooth_bridge.cc b/components/arc/bluetooth/arc_bluetooth_bridge.cc
index 282970e254c5c5f1347cf3aa60efeaed3a8fe26b..5042636b7465a062c41a05f768b4253c6e6f05a4 100644
--- a/components/arc/bluetooth/arc_bluetooth_bridge.cc
+++ b/components/arc/bluetooth/arc_bluetooth_bridge.cc
@@ -734,7 +734,7 @@ void ArcBluetoothBridge::GetGattDB(mojom::BluetoothAddressPtr remote_addr) {
BluetoothDevice* device =
bluetooth_adapter_->GetDevice(remote_addr->To<std::string>());
mojo::Array<mojom::BluetoothGattDBElementPtr> db;
- for (auto service : device->GetGattServices()) {
+ for (auto* service : device->GetGattServices()) {
mojom::BluetoothGattDBElementPtr service_element = CreateGattDBElement<
device::BluetoothRemoteGattService>(
service->IsPrimary()
@@ -753,7 +753,7 @@ void ArcBluetoothBridge::GetGattDB(mojom::BluetoothAddressPtr remote_addr) {
}
db.push_back(std::move(service_element));
- for (auto characteristic : characteristics) {
+ for (auto* characteristic : characteristics) {
mojom::BluetoothGattDBElementPtr characteristic_element =
CreateGattDBElement<device::BluetoothRemoteGattCharacteristic>(
mojom::BluetoothGattDBAttributeType::BTGATT_DB_CHARACTERISTIC,
@@ -761,7 +761,7 @@ void ArcBluetoothBridge::GetGattDB(mojom::BluetoothAddressPtr remote_addr) {
characteristic_element->properties = characteristic->GetProperties();
db.push_back(std::move(characteristic_element));
- for (auto descriptor : characteristic->GetDescriptors()) {
+ for (auto* descriptor : characteristic->GetDescriptors()) {
db.push_back(CreateGattDBElement<device::BluetoothRemoteGattDescriptor>(
mojom::BluetoothGattDBAttributeType::BTGATT_DB_DESCRIPTOR,
descriptor));
@@ -1203,7 +1203,7 @@ ArcBluetoothBridge::GetAdapterProperties(
mojo::Array<mojom::BluetoothAddressPtr> bonded_devices =
mojo::Array<mojom::BluetoothAddressPtr>::New(0);
- for (auto device : devices) {
+ for (auto* device : devices) {
if (device->IsPaired())
continue;
@@ -1282,7 +1282,7 @@ void ArcBluetoothBridge::SendCachedDevicesFound() const {
return;
BluetoothAdapter::DeviceList devices = bluetooth_adapter_->GetDevices();
- for (auto device : devices) {
+ for (auto* device : devices) {
if (device->IsPaired())
continue;
@@ -1319,7 +1319,7 @@ void ArcBluetoothBridge::SendCachedPairedDevices() const {
return;
BluetoothAdapter::DeviceList devices = bluetooth_adapter_->GetDevices();
- for (auto device : devices) {
+ for (auto* device : devices) {
if (!device->IsPaired())
continue;
« no previous file with comments | « no previous file | components/arc/storage_manager/arc_storage_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698