minor cleanup refactor

This commit is contained in:
Alden Torres 2017-02-06 12:44:50 -05:00 committed by Arvid Norberg
parent 9e4045ed42
commit b84766e346
2 changed files with 2 additions and 5 deletions

View File

@ -77,9 +77,6 @@ namespace libtorrent
void TORRENT_NO_RETURN throw_invalid_handle();
#endif
using std::shared_ptr;
using std::make_shared;
// holds the state of a block in a piece. Who we requested
// it from and how far along we are at downloading it.
struct TORRENT_EXPORT block_info
@ -895,7 +892,7 @@ namespace libtorrent
// without metadata only if it was started without a .torrent file, e.g.
// by using the libtorrent extension of just supplying a tracker and
// info-hash.
shared_ptr<const torrent_info> torrent_file() const;
std::shared_ptr<const torrent_info> torrent_file() const;
#ifndef TORRENT_NO_DEPRECATE

View File

@ -86,7 +86,7 @@ struct peer_connection: bandwidth_socket, std::enable_shared_from_this<peer_conn
int m_priority;
bool m_ignore_limits;
std::string m_name;
boost::int64_t m_quota;
std::int64_t m_quota;
};
void peer_connection::assign_bandwidth(int channel, int amount)