search: use const for iterator comparison

This commit is contained in:
Adrien Béraud committed 2022-03-24 21:33:51 -04:00
1 parent dfd0a09361
commit d4e6fd545a
1 file changed
+1 -1
+1 -1
View File
@@ -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(),