mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
search: use const for iterator comparison
This commit is contained in:
1 parent
dfd0a09361
commit
d4e6fd545a
1 file changed
+1
-1
+1
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user