From f84cc340dfcab763bec643beef64f0dc1f127754 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 29 Oct 2010 02:42:41 +0000 Subject: [PATCH] fixed a bunch of sloppy typos --- include/libtorrent/session_settings.hpp | 2 +- include/libtorrent/torrent.hpp | 4 ++-- include/libtorrent/torrent_handle.hpp | 2 +- src/torrent_handle.cpp | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/libtorrent/session_settings.hpp b/include/libtorrent/session_settings.hpp index 61e0a818d..083d8222f 100644 --- a/include/libtorrent/session_settings.hpp +++ b/include/libtorrent/session_settings.hpp @@ -137,7 +137,7 @@ namespace libtorrent , auto_upload_slots(true) , auto_upload_slots_rate_based(true) #endif - , choking_algorithm(fixed_slot_choker) + , choking_algorithm(fixed_slots_choker) , seed_choking_algorithm(round_robin) , use_parole_mode(true) , cache_size(1024) diff --git a/include/libtorrent/torrent.hpp b/include/libtorrent/torrent.hpp index 2d91d4e9b..5b4f700b1 100644 --- a/include/libtorrent/torrent.hpp +++ b/include/libtorrent/torrent.hpp @@ -237,9 +237,9 @@ namespace libtorrent bool allows_peers() const { return m_allow_peers; } bool is_torrent_paused() const { return !m_allow_peers; } void force_recheck(); - void save_resume_data(); + void save_resume_data(int flags); - bool need_save_resume_data(int flags = 0) const + bool need_save_resume_data() const { // save resume data every 15 minutes regardless, just to // keep stats up to date diff --git a/include/libtorrent/torrent_handle.hpp b/include/libtorrent/torrent_handle.hpp index 56a6a761f..1fdf6f6b9 100644 --- a/include/libtorrent/torrent_handle.hpp +++ b/include/libtorrent/torrent_handle.hpp @@ -478,7 +478,7 @@ namespace libtorrent void force_recheck() const; enum save_resume_flags_t { flush_disk_cache = 1 }; - void save_resume_data(int flags) const; + void save_resume_data(int flags = 0) const; bool need_save_resume_data() const; bool is_auto_managed() const; diff --git a/src/torrent_handle.cpp b/src/torrent_handle.cpp index 14ebea504..5474f99a1 100644 --- a/src/torrent_handle.cpp +++ b/src/torrent_handle.cpp @@ -395,10 +395,10 @@ namespace libtorrent TORRENT_ASYNC_CALL(flush_cache); } - void torrent_handle::save_resume_data() const + void torrent_handle::save_resume_data(int f) const { INVARIANT_CHECK; - TORRENT_ASYNC_CALL(save_resume_data); + TORRENT_ASYNC_CALL1(save_resume_data, f); } bool torrent_handle::need_save_resume_data() const