minor cleanup

This commit is contained in:
Arvid Norberg 2007-06-03 05:57:05 +00:00
parent 08965f331c
commit 4f339272dc
2 changed files with 7 additions and 7 deletions

View File

@ -2549,8 +2549,8 @@ namespace libtorrent
torrent_status st;
st.num_peers = (int)std::count_if(m_connections.begin(), m_connections.end(),
boost::bind<bool>(std::logical_not<bool>(), boost::bind(&peer_connection::is_connecting,
boost::bind(&std::map<tcp::endpoint,peer_connection*>::value_type::second, _1))));
!boost::bind(&peer_connection::is_connecting
, boost::bind(&std::map<tcp::endpoint,peer_connection*>::value_type::second, _1)));
st.num_complete = m_complete;
st.num_incomplete = m_incomplete;
@ -2671,10 +2671,10 @@ namespace libtorrent
{
INVARIANT_CHECK;
return (int)std::count_if(m_connections.begin(), m_connections.end(),
boost::bind(&peer_connection::is_seed,
boost::bind(&std::map<tcp::endpoint
,peer_connection*>::value_type::second, _1)));
return (int)std::count_if(m_connections.begin(), m_connections.end()
, boost::bind(&peer_connection::is_seed
, boost::bind(&std::map<tcp::endpoint
, peer_connection*>::value_type::second, _1)));
}
void torrent::tracker_request_timed_out(

View File

@ -727,7 +727,7 @@ namespace libtorrent
{
peer_connection* peer = i->second;
// peers that haven't finished the handshake should
// incoming peers that haven't finished the handshake should
// not be included in this list
if (peer->associated_torrent().expired()) continue;