From adeceb4b925c43a3599eaad929b611d1fb3a4766 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 12 Jan 2019 20:48:24 +0100 Subject: [PATCH] fix deprecation macro and auto in client_test --- bindings/python/src/alert.cpp | 2 +- examples/client_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/src/alert.cpp b/bindings/python/src/alert.cpp index a47ddc8a7..2e3580299 100644 --- a/bindings/python/src/alert.cpp +++ b/bindings/python/src/alert.cpp @@ -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; diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 53d76d545..88ce002d9 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -299,7 +299,7 @@ FILE* g_log_file = nullptr; int peer_index(lt::tcp::endpoint addr, std::vector const& peers) { using namespace lt; - std::vector::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;