diff options
Diffstat (limited to 'libktorrent/kademlia/database.cpp')
-rw-r--r-- | libktorrent/kademlia/database.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libktorrent/kademlia/database.cpp b/libktorrent/kademlia/database.cpp index 447975f..c4b34fd 100644 --- a/libktorrent/kademlia/database.cpp +++ b/libktorrent/kademlia/database.cpp @@ -72,7 +72,7 @@ namespace dht void Database::store(const dht::Key & key,const DBItem & dbi) { - DBItemList* dbl = items.find(key); + DBItemList* dbl = items.tqfind(key); if (!dbl) { dbl = new DBItemList(); @@ -83,7 +83,7 @@ namespace dht void Database::sample(const dht::Key & key,DBItemList & tdbl,bt::Uint32 max_entries) { - DBItemList* dbl = items.find(key); + DBItemList* dbl = items.tqfind(key); if (!dbl) return; @@ -144,7 +144,7 @@ namespace dht bool Database::checkToken(const dht::Key & token,Uint32 ip,Uint16 port) { // the token must be in the map - if (!tokens.contains(token)) + if (!tokens.tqcontains(token)) { Out(SYS_DHT|LOG_DEBUG) << "Unknown token" << endl; return false; @@ -169,14 +169,14 @@ namespace dht return true; } - bool Database::contains(const dht::Key & key) const + bool Database::tqcontains(const dht::Key & key) const { - return items.find(key) != 0; + return items.tqfind(key) != 0; } void Database::insert(const dht::Key & key) { - DBItemList* dbl = items.find(key); + DBItemList* dbl = items.tqfind(key); if (!dbl) { dbl = new DBItemList(); |