mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Move qHash helper for libtorrent types to its own file
This commit is contained in:
parent
39c61327b5
commit
71827fe4e6
5 changed files with 52 additions and 12 deletions
|
@ -61,6 +61,7 @@
|
|||
#include "base/utils/string.h"
|
||||
#include "common.h"
|
||||
#include "downloadpriority.h"
|
||||
#include "ltqhash.h"
|
||||
#include "ltunderlyingtype.h"
|
||||
#include "peeraddress.h"
|
||||
#include "peerinfo.h"
|
||||
|
@ -71,18 +72,6 @@ const QString QB_EXT {QStringLiteral(".!qB")};
|
|||
|
||||
using namespace BitTorrent;
|
||||
|
||||
namespace libtorrent
|
||||
{
|
||||
namespace aux
|
||||
{
|
||||
template <typename T, typename Tag>
|
||||
uint qHash(const strong_typedef<T, Tag> &key, const uint seed)
|
||||
{
|
||||
return ::qHash((std::hash<strong_typedef<T, Tag>> {})(key), seed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
std::vector<lt::download_priority_t> toLTDownloadPriorities(const QVector<DownloadPriority> &priorities)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue