forked from premiere/premiere-libtorrent
fixed typo
This commit is contained in:
parent
8c404cc5c1
commit
62f8cac2b9
|
@ -1346,7 +1346,7 @@ The ``torrent_info`` has the following synopsis::
|
|||
public:
|
||||
|
||||
// flags for torrent_info constructor
|
||||
enum flags_t { ommit_filehashes = 1 };
|
||||
enum flags_t { omit_filehashes = 1 };
|
||||
|
||||
// these constructors throws exceptions on error
|
||||
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
|
||||
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,
|
||||
pass in ``torrent_info::ommit_filehashes`` as the flags argument.
|
||||
pass in ``torrent_info::omit_filehashes`` as the flags argument.
|
||||
|
||||
|
||||
add_tracker()
|
||||
|
|
|
@ -226,7 +226,7 @@ namespace libtorrent
|
|||
{
|
||||
public:
|
||||
|
||||
enum flags_t { ommit_filehashes = 1 };
|
||||
enum flags_t { omit_filehashes = 1 };
|
||||
|
||||
#ifndef BOOST_NO_EXCEPTIONS
|
||||
torrent_info(lazy_entry const& torrent_file, int flags = 0);
|
||||
|
|
|
@ -833,8 +833,8 @@ namespace libtorrent
|
|||
ec = errors::torrent_invalid_length;
|
||||
return false;
|
||||
}
|
||||
bool ommit_hash = (flags & torrent_info::ommit_filehashes) || e.filehash_index == -1;
|
||||
m_files.add_file(e, ommit_hash ? 0 : &filehash
|
||||
bool omit_hash = (flags & torrent_info::omit_filehashes) || e.filehash_index == -1;
|
||||
m_files.add_file(e, omit_hash ? 0 : &filehash
|
||||
, e.symlink_index != -1 ? &symlink : 0);
|
||||
m_multifile = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue