fixed some warnings

This commit is contained in:
Arvid Norberg 2009-02-13 07:13:03 +00:00
parent 82823c62d9
commit 63a2522014
2 changed files with 1 additions and 3 deletions

View File

@ -269,8 +269,6 @@ void bind_torrent_handle()
void (torrent_handle::*resolve_countries1)(bool) = &torrent_handle::resolve_countries;
#endif
return_value_policy<copy_const_reference> copy;
#define _ allow_threads
class_<torrent_handle>("torrent_handle")

View File

@ -1841,7 +1841,7 @@ namespace aux {
{
TORRENT_ASSERT(!params.save_path.empty());
if (params.ti && params.ti->files().num_files() == 0)
if (params.ti && params.ti->num_files() == 0)
{
#ifndef BOOST_NO_EXCEPTIONS
throw std::runtime_error("no files in torrent");