mirror of
https://github.com/transmission/transmission.git
synced 2025-12-27 05:38:40 +00:00
refactor: add tr_torrent::fileCount() (#2273)
Provide an accessor to get a torrent's file count. This is an incremental step towards making tr_torrent's impl private.
This commit is contained in:
@@ -73,7 +73,7 @@ public:
|
||||
have.setHasAll();
|
||||
tr_peerUpdateProgress(tor, this);
|
||||
|
||||
file_urls.resize(tr_torrentInfo(tor)->fileCount);
|
||||
file_urls.resize(tor->fileCount());
|
||||
|
||||
timer = evtimer_new(session->event_base, webseed_timer_func, this);
|
||||
tr_timerAddMsec(timer, TR_IDLE_TIMER_MSEC);
|
||||
|
||||
Reference in New Issue
Block a user