Chromium Code Reviews| Index: device/bluetooth/bluetooth_adapter.cc |
| diff --git a/device/bluetooth/bluetooth_adapter.cc b/device/bluetooth/bluetooth_adapter.cc |
| index 6d997515ac3162344e91d835b5d74c4a4fc052a5..7b30fad19ebd8a1f5ce5d300142767bf306fe234 100644 |
| --- a/device/bluetooth/bluetooth_adapter.cc |
| +++ b/device/bluetooth/bluetooth_adapter.cc |
| @@ -336,7 +336,7 @@ BluetoothAdapter::GetMergedDiscoveryFilterHelper( |
| bool first_merge = true; |
| std::set<BluetoothDiscoverySession*> temp(discovery_sessions_); |
| - for (const auto& iter : temp) { |
| + for (auto* iter : temp) { |
|
ortuno
2016/06/28 21:38:17
I've been told in the past that I shouldn't use au
vmpstr
2016/06/28 21:43:13
This holds, but it's a bit subtle. In the case bef
danakj
2016/06/28 22:06:44
FWIW past guidance on chromium-dev has been to not
|
| const BluetoothDiscoveryFilter* curr_filter = iter->GetDiscoveryFilter(); |
| if (!iter->IsActive()) |