diff options
Diffstat (limited to 'components/pairing/bluetooth_controller_pairing_controller.cc')
-rw-r--r-- | components/pairing/bluetooth_controller_pairing_controller.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/components/pairing/bluetooth_controller_pairing_controller.cc b/components/pairing/bluetooth_controller_pairing_controller.cc index 4c4d855..bf5e7fd 100644 --- a/components/pairing/bluetooth_controller_pairing_controller.cc +++ b/components/pairing/bluetooth_controller_pairing_controller.cc @@ -137,11 +137,8 @@ void BluetoothControllerPairingController::OnStartDiscoverySession( discovery_session_ = discovery_session.Pass(); ChangeStage(STAGE_DEVICES_DISCOVERY); - device::BluetoothAdapter::DeviceList device_list = adapter_->GetDevices(); - for (device::BluetoothAdapter::DeviceList::iterator ix = device_list.begin(); - ix != device_list.end(); ++ix) { - DeviceFound(*ix); - } + for (const auto& device : adapter_->GetDevices()) + DeviceFound(device); } void BluetoothControllerPairingController::OnConnect() { |