query extra fields in torrent files without requiring exception handling

This commit is contained in:
Arvid Norberg 2007-10-24 18:15:13 +00:00
parent a1a564ef51
commit 5f89db91a3
1 changed files with 2 additions and 2 deletions

View File

@ -240,8 +240,8 @@ namespace libtorrent
void parse_info_section(entry const& e);
entry extra(char const* key) const
{ return m_extra_info[key]; }
entry const* extra(char const* key) const
{ return m_extra_info.find_key(key); }
// frees parts of the metadata that isn't
// used by seeds