Removed unnecessary call to node_id copy constructor.

This commit is contained in:
Alden Torres 2015-08-22 16:01:53 -04:00
parent e7b8b6da49
commit 5be9dfb6db
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ namespace libtorrent { namespace dht
entry const* nid = e->find_key("node-id"); entry const* nid = e->find_key("node-id");
if (nid == 0 || nid->type() != entry::string_t || nid->string().length() != 20) if (nid == 0 || nid->type() != entry::string_t || nid->string().length() != 20)
return (node_id::min)(); return (node_id::min)();
return node_id(node_id(nid->string().c_str())); return node_id(nid->string().c_str());
} }
} // anonymous namespace } // anonymous namespace