Merge "adb: fix erase-remove_if idiom." am: c2a2ecb7a5
am: 1f3763ef4a
Change-Id: I8edeb4df0f168e08e895b4bad8dc9c85bd21c179
This commit is contained in:
commit
dbc4b45c90
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ void close_smartsockets() EXCLUDES(listener_list_mutex) {
|
|||
auto pred = [](const std::unique_ptr<alistener>& listener) {
|
||||
return listener->local_name == "*smartsocket*";
|
||||
};
|
||||
listener_list.erase(std::remove_if(listener_list.begin(), listener_list.end(), pred));
|
||||
listener_list.remove_if(pred);
|
||||
}
|
||||
|
||||
InstallStatus install_listener(const std::string& local_name, const char* connect_to,
|
||||
|
|
Loading…
Reference in a new issue