Use InfoHash type in queueing operations

This avoids redundant type conversions.
This commit is contained in:
Chocobo1 2019-10-02 12:52:51 +08:00
commit e0a23ba93d
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
4 changed files with 59 additions and 43 deletions

View file

@ -412,10 +412,10 @@ namespace BitTorrent
bool cancelLoadMetadata(const InfoHash &hash);
void recursiveTorrentDownload(const InfoHash &hash);
void increaseTorrentsQueuePos(const QStringList &hashes);
void decreaseTorrentsQueuePos(const QStringList &hashes);
void topTorrentsQueuePos(const QStringList &hashes);
void bottomTorrentsQueuePos(const QStringList &hashes);
void increaseTorrentsQueuePos(const QVector<InfoHash> &hashes);
void decreaseTorrentsQueuePos(const QVector<InfoHash> &hashes);
void topTorrentsQueuePos(const QVector<InfoHash> &hashes);
void bottomTorrentsQueuePos(const QVector<InfoHash> &hashes);
// TorrentHandle interface
void handleTorrentSaveResumeDataRequested(const TorrentHandle *torrent);