minor cleanup

This commit is contained in:
Arvid Norberg 2015-05-28 14:46:12 +00:00
parent 647a6dba54
commit 27cbfa164e
5 changed files with 6 additions and 6 deletions

View File

@ -183,7 +183,8 @@ namespace libtorrent {
// this is either 0 or 1, it indicates which m_alerts and m_allocations
// the alert_manager is allowed to use right now. This is swapped when
// the client calls get_all(), at which point
// the client calls get_all(), at which point all of the alert objects
// passed to the client will be owned by libtorrent again, and reset.
int m_generation;
// this is where all alerts are queued up. There are two heterogenous

View File

@ -778,8 +778,6 @@ namespace libtorrent
// to clear the undead peers
boost::optional<io_service::work> m_work;
typedef std::list<boost::shared_ptr<torrent> > check_queue_t;
// this maps sockets to their peer_connection
// object. It is the complete list of all connected
// peers.
@ -1140,6 +1138,7 @@ namespace libtorrent
external_ip m_external_ip;
#ifndef TORRENT_DISABLE_EXTENSIONS
// this is a list to allow extensions to potentially remove themselves.
typedef std::list<boost::shared_ptr<plugin> > ses_extension_list_t;
ses_extension_list_t m_ses_extensions;
#endif

View File

@ -886,7 +886,7 @@ namespace aux {
m_alerts.add_extension(ext);
ext->added(this);
}
#endif
#endif // TORRENT_DISABLE_EXTENSIONS
#ifndef TORRENT_NO_DEPRECATE
feed_handle session_impl::add_feed(feed_settings const& sett)

View File

@ -125,7 +125,7 @@ namespace libtorrent { namespace
virtual boost::shared_ptr<peer_plugin> new_connection(
peer_connection* pc);
int get_metadata_size() const
{
TORRENT_ASSERT(m_metadata_size > 0);

View File

@ -662,7 +662,7 @@ void web_peer_connection::on_receive(error_code const& error
#endif
return;
}
bool single_file_request = false;
if (!m_path.empty() && m_path[m_path.size() - 1] != '/')
single_file_request = true;