forked from premiere/premiere-libtorrent
Removed unnecessary call to node_id copy constructor.
This commit is contained in:
parent
e7b8b6da49
commit
5be9dfb6db
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue