mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 19:26:59 +03:00
parent
4b0a2d050a
commit
fd3d4d479a
1 changed files with 1 additions and 1 deletions
|
@ -797,7 +797,7 @@ QVector<DownloadPriority> TorrentImpl::filePriorities() const
|
|||
const std::vector<lt::download_priority_t> fp = m_nativeHandle.get_file_priorities();
|
||||
|
||||
QVector<DownloadPriority> ret;
|
||||
ret.reserve(fp.size());
|
||||
ret.reserve(static_cast<decltype(ret)::size_type>(fp.size()));
|
||||
std::transform(fp.cbegin(), fp.cend(), std::back_inserter(ret), [](const lt::download_priority_t priority)
|
||||
{
|
||||
return static_cast<DownloadPriority>(toLTUnderlyingType(priority));
|
||||
|
|
Loading…
Reference in a new issue