fixed typo

This commit is contained in:
Arvid Norberg 2010-11-15 05:15:43 +00:00
parent 8c404cc5c1
commit 62f8cac2b9
3 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -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);

View File

@ -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;
}