fix deprecation macro and auto in client_test
This commit is contained in:
parent
f4f1425115
commit
adeceb4b92
|
@ -135,7 +135,7 @@ dict session_stats_values(session_stats_alert const& alert)
|
|||
return d;
|
||||
}
|
||||
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
#if TORRENT_ABI_VERSION == 1
|
||||
entry const& get_resume_data_entry(save_resume_data_alert const& self)
|
||||
{
|
||||
return *self.resume_data;
|
||||
|
|
|
@ -299,7 +299,7 @@ FILE* g_log_file = nullptr;
|
|||
int peer_index(lt::tcp::endpoint addr, std::vector<lt::peer_info> const& peers)
|
||||
{
|
||||
using namespace lt;
|
||||
std::vector<peer_info>::const_iterator i = std::find_if(peers.begin(), peers.end()
|
||||
auto i = std::find_if(peers.begin(), peers.end()
|
||||
, [&addr](peer_info const& pi) { return pi.ip == addr; });
|
||||
if (i == peers.end()) return -1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue