changed the definition of file_progress and deprecated the old function. Python bindings only exposes the new one

This commit is contained in:
Arvid Norberg
2008-07-12 13:38:22 +00:00
parent e49c015c92
commit 9bf25d1006
6 changed files with 46 additions and 20 deletions

View File

@@ -74,7 +74,7 @@ namespace
list file_progress(torrent_handle& handle)
{
std::vector<float> p;
std::vector<size_type> p;
{
allow_threading_guard guard;
@@ -84,7 +84,7 @@ list file_progress(torrent_handle& handle)
list result;
for (std::vector<float>::iterator i(p.begin()), e(p.end()); i != e; ++i)
for (std::vector<size_type>::iterator i(p.begin()), e(p.end()); i != e; ++i)
result.append(*i);
return result;