forked from premiere/premiere-libtorrent
add reserve entry::to_string() (#2148)
This commit is contained in:
parent
c4659bc345
commit
ea8c5b32da
|
@ -637,6 +637,7 @@ namespace {
|
|||
std::string entry::to_string() const
|
||||
{
|
||||
std::string ret;
|
||||
if (type() == dictionary_t) ret.reserve(280);
|
||||
to_string_impl(ret, 0);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue