Tag: #gd-refactor
Bug:
180869951
Test: gd/cert/run
Change-Id: Ia04aea10c686c8c4ec8985f2ba3f3424691ea825
}
void LeAddressManager::pause_registered_clients() {
- for (auto client : registered_clients_) {
+ for (auto& client : registered_clients_) {
if (client.second != ClientState::PAUSED && client.second != ClientState::WAITING_FOR_PAUSE) {
client.second = ClientState::WAITING_FOR_PAUSE;
client.first->OnPause();
return;
}
- for (auto client : registered_clients_) {
+ for (auto& client : registered_clients_) {
client.second = ClientState::WAITING_FOR_RESUME;
client.first->OnResume();
}