fixed typo
This commit is contained in:
@@ -1346,7 +1346,7 @@ The ``torrent_info`` has the following synopsis::
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
// flags for torrent_info constructor
|
// flags for torrent_info constructor
|
||||||
enum flags_t { ommit_filehashes = 1 };
|
enum flags_t { omit_filehashes = 1 };
|
||||||
|
|
||||||
// these constructors throws exceptions on error
|
// these constructors throws exceptions on error
|
||||||
torrent_info(sha1_hash const& info_hash, int flags = 0);
|
torrent_info(sha1_hash const& info_hash, int flags = 0);
|
||||||
@@ -1459,7 +1459,7 @@ exception support.
|
|||||||
The ``flags`` argument can be used to disable loading of potentially unnecessary hashes
|
The ``flags`` argument can be used to disable loading of potentially unnecessary hashes
|
||||||
for individual files (if included in the torrent file). This is especially useful if
|
for individual files (if included in the torrent file). This is especially useful if
|
||||||
you're loading torrents with thousands of files on a memory constrained system. If so,
|
you're loading torrents with thousands of files on a memory constrained system. If so,
|
||||||
pass in ``torrent_info::ommit_filehashes`` as the flags argument.
|
pass in ``torrent_info::omit_filehashes`` as the flags argument.
|
||||||
|
|
||||||
|
|
||||||
add_tracker()
|
add_tracker()
|
||||||
|
@@ -226,7 +226,7 @@ namespace libtorrent
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
enum flags_t { ommit_filehashes = 1 };
|
enum flags_t { omit_filehashes = 1 };
|
||||||
|
|
||||||
#ifndef BOOST_NO_EXCEPTIONS
|
#ifndef BOOST_NO_EXCEPTIONS
|
||||||
torrent_info(lazy_entry const& torrent_file, int flags = 0);
|
torrent_info(lazy_entry const& torrent_file, int flags = 0);
|
||||||
|
@@ -833,8 +833,8 @@ namespace libtorrent
|
|||||||
ec = errors::torrent_invalid_length;
|
ec = errors::torrent_invalid_length;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
bool ommit_hash = (flags & torrent_info::ommit_filehashes) || e.filehash_index == -1;
|
bool omit_hash = (flags & torrent_info::omit_filehashes) || e.filehash_index == -1;
|
||||||
m_files.add_file(e, ommit_hash ? 0 : &filehash
|
m_files.add_file(e, omit_hash ? 0 : &filehash
|
||||||
, e.symlink_index != -1 ? &symlink : 0);
|
, e.symlink_index != -1 ? &symlink : 0);
|
||||||
m_multifile = false;
|
m_multifile = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user