mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
Suppress type narrowing warning on MSVC
Fix up 45e31a153cf65390041059eb0a524ac296992629.
This commit is contained in:
parent
4b0a2d050a
commit
fd3d4d479a
@ -797,7 +797,7 @@ QVector<DownloadPriority> TorrentImpl::filePriorities() const
|
|||||||
const std::vector<lt::download_priority_t> fp = m_nativeHandle.get_file_priorities();
|
const std::vector<lt::download_priority_t> fp = m_nativeHandle.get_file_priorities();
|
||||||
|
|
||||||
QVector<DownloadPriority> ret;
|
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)
|
std::transform(fp.cbegin(), fp.cend(), std::back_inserter(ret), [](const lt::download_priority_t priority)
|
||||||
{
|
{
|
||||||
return static_cast<DownloadPriority>(toLTUnderlyingType(priority));
|
return static_cast<DownloadPriority>(toLTUnderlyingType(priority));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user