mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 22:14:32 +00:00
Pass arguemnts by const reference
This commit is contained in:
parent
42c17ea5ce
commit
b4baeaaf23
@ -49,14 +49,14 @@ TorrentFilter::TorrentFilter()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
TorrentFilter::TorrentFilter(Type type, QStringSet hashSet, QString category)
|
TorrentFilter::TorrentFilter(const Type type, const QStringSet &hashSet, const QString &category)
|
||||||
: m_type(type)
|
: m_type(type)
|
||||||
, m_category(category)
|
, m_category(category)
|
||||||
, m_hashSet(hashSet)
|
, m_hashSet(hashSet)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
TorrentFilter::TorrentFilter(QString filter, QStringSet hashSet, QString category)
|
TorrentFilter::TorrentFilter(const QString &filter, const QStringSet &hashSet, const QString &category)
|
||||||
: m_type(All)
|
: m_type(All)
|
||||||
, m_category(category)
|
, m_category(category)
|
||||||
, m_hashSet(hashSet)
|
, m_hashSet(hashSet)
|
||||||
|
@ -72,8 +72,8 @@ public:
|
|||||||
|
|
||||||
TorrentFilter();
|
TorrentFilter();
|
||||||
// category: pass empty string for "no category" or null string (QString()) for "any category"
|
// category: pass empty string for "no category" or null string (QString()) for "any category"
|
||||||
TorrentFilter(Type type, QStringSet hashSet = AnyHash, QString category = AnyCategory);
|
TorrentFilter(const Type type, const QStringSet &hashSet = AnyHash, const QString &category = AnyCategory);
|
||||||
TorrentFilter(QString filter, QStringSet hashSet = AnyHash, QString category = AnyCategory);
|
TorrentFilter(const QString &filter, const QStringSet &hashSet = AnyHash, const QString &category = AnyCategory);
|
||||||
|
|
||||||
bool setType(Type type);
|
bool setType(Type type);
|
||||||
bool setTypeByName(const QString &filter);
|
bool setTypeByName(const QString &filter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user