mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 21:52:32 -06:00
Initialize member variables
This commit is contained in:
@@ -32,13 +32,6 @@
|
||||
|
||||
SearchSortModel::SearchSortModel(QObject *parent)
|
||||
: base(parent)
|
||||
, m_isNameFilterEnabled(false)
|
||||
, m_minSeeds(0)
|
||||
, m_maxSeeds(-1)
|
||||
, m_minLeeches(0)
|
||||
, m_maxLeeches(-1)
|
||||
, m_minSize(0)
|
||||
, m_maxSize(-1)
|
||||
{
|
||||
setSortRole(UnderlyingDataRole);
|
||||
setFilterRole(UnderlyingDataRole);
|
||||
|
||||
@@ -90,12 +90,12 @@ protected:
|
||||
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
|
||||
|
||||
private:
|
||||
bool m_isNameFilterEnabled;
|
||||
bool m_isNameFilterEnabled = false;
|
||||
QString m_searchTerm;
|
||||
QStringList m_searchTermWords;
|
||||
int m_minSeeds, m_maxSeeds;
|
||||
int m_minLeeches, m_maxLeeches;
|
||||
qint64 m_minSize, m_maxSize;
|
||||
int m_minSeeds = 0, m_maxSeeds = -1;
|
||||
int m_minLeeches = 0, m_maxLeeches = -1;
|
||||
qint64 m_minSize = 0, m_maxSize = -1;
|
||||
|
||||
Utils::Compare::NaturalLessThan<Qt::CaseInsensitive> m_naturalLessThan;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user