Skip to content
Snippets Groups Projects
Commit d4e6fd54 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

search: use const for iterator comparison

parent dfd0a093
Branches
Tags
No related merge requests found
......@@ -292,7 +292,7 @@ struct Dht::SearchNode {
return std::find_if(status.cbegin(), status.cend(),
[](const SyncStatus::value_type& r){
return r.second and r.second->pending();
}) != status.end();
}) != status.cend();
}
static bool pending(const NodeListenerStatus& status) {
return std::find_if(status.begin(), status.end(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment