From 5be9dfb6dbbdf59a73b718b71edcf7a9f06f8cd2 Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Sat, 22 Aug 2015 16:01:53 -0400 Subject: [PATCH] Removed unnecessary call to node_id copy constructor. --- src/kademlia/dht_tracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kademlia/dht_tracker.cpp b/src/kademlia/dht_tracker.cpp index e9e7ecb37..e08134afe 100644 --- a/src/kademlia/dht_tracker.cpp +++ b/src/kademlia/dht_tracker.cpp @@ -87,7 +87,7 @@ namespace libtorrent { namespace dht entry const* nid = e->find_key("node-id"); if (nid == 0 || nid->type() != entry::string_t || nid->string().length() != 20) return (node_id::min)(); - return node_id(node_id(nid->string().c_str())); + return node_id(nid->string().c_str()); } } // anonymous namespace