From 4f339272dc5b9887625c37b2902515689365d760 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 3 Jun 2007 05:57:05 +0000 Subject: [PATCH] minor cleanup --- src/torrent.cpp | 12 ++++++------ src/torrent_handle.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index fc1a7c105..e59448340 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2549,8 +2549,8 @@ namespace libtorrent torrent_status st; st.num_peers = (int)std::count_if(m_connections.begin(), m_connections.end(), - boost::bind(std::logical_not(), boost::bind(&peer_connection::is_connecting, - boost::bind(&std::map::value_type::second, _1)))); + !boost::bind(&peer_connection::is_connecting + , boost::bind(&std::map::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::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::value_type::second, _1))); } void torrent::tracker_request_timed_out( diff --git a/src/torrent_handle.cpp b/src/torrent_handle.cpp index 4dc821d7d..b8c307b88 100755 --- a/src/torrent_handle.cpp +++ b/src/torrent_handle.cpp @@ -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;