merged changes from RC_1_0

This commit is contained in:
Arvid Norberg 2015-06-03 05:12:54 +00:00
parent 4e1e53f066
commit b5a30a65ae
2 changed files with 6 additions and 6 deletions

View File

@ -241,11 +241,11 @@ namespace libtorrent
// integer
case 'i':
{
++in; // 'i'
++in; // 'i'
std::string val = read_until(in, end, 'e', err);
if (err) return;
TORRENT_ASSERT(*in == 'e');
++in; // 'e'
++in; // 'e'
ret = entry(entry::int_t);
char* end_pointer;
ret.integer() = strtoll(val.c_str(), &end_pointer, 10);
@ -304,7 +304,7 @@ namespace libtorrent
entry key;
bdecode_recursive(in, end, key, err, depth + 1);
if (err || key.type() != entry::string_t)
{
{
#ifdef TORRENT_DEBUG
ret.m_type_queried = false;
#endif
@ -375,7 +375,7 @@ namespace libtorrent
}
}
}
// These functions will encode data to bencoded or decode bencoded data.
//
// If possible, ``bdecode()`` producing a bdecode_node should be preferred

View File

@ -116,7 +116,7 @@ namespace libtorrent
if (i == dict().end()) return 0;
return &i->second;
}
entry* entry::find_key(std::string const& key)
{
dictionary_type::iterator i = dict().find(key);
@ -130,7 +130,7 @@ namespace libtorrent
if (i == dict().end()) return 0;
return &i->second;
}
#ifndef BOOST_NO_EXCEPTIONS
const entry& entry::operator[](char const* key) const
{