mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-11 00:29:22 +00:00
use priotity_enum
The _t typedef is only useful with C, not C++. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Jari Sundell
parent
316b0b51d5
commit
25f729fab5
@@ -265,7 +265,7 @@ ElementFileList::receive_priority() {
|
||||
if (m_window == NULL)
|
||||
return;
|
||||
|
||||
torrent::priority_t priority = torrent::priority_t((m_selected.file()->priority() + 2) % 3);
|
||||
auto priority = torrent::priority_enum((m_selected.file()->priority() + 2) % 3);
|
||||
|
||||
iterator first = m_selected;
|
||||
iterator last = m_selected;
|
||||
@@ -288,7 +288,7 @@ ElementFileList::receive_change_all() {
|
||||
return;
|
||||
|
||||
torrent::FileList* fl = m_download->download()->file_list();
|
||||
torrent::priority_t priority = torrent::priority_t((m_selected.file()->priority() + 2) % 3);
|
||||
auto priority = torrent::priority_enum((m_selected.file()->priority() + 2) % 3);
|
||||
|
||||
for (torrent::FileList::iterator itr = fl->begin(), last = fl->end(); itr != last; ++itr)
|
||||
(*itr)->set_priority(priority);
|
||||
|
||||
Reference in New Issue
Block a user