mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-12 18:24:58 +08:00
Move member variable initialization
Move the initialization from constructor body to member initializer list. Remove superfluous initializer.
This commit is contained in:
parent
517fc39950
commit
a70219eea0
@ -41,10 +41,10 @@
|
||||
BanListOptionsDialog::BanListOptionsDialog(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
, m_ui(new Ui::BanListOptionsDialog)
|
||||
, m_model(new QStringListModel(BitTorrent::Session::instance()->bannedIPs(), this))
|
||||
, m_modified(false)
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
m_model = new QStringListModel(BitTorrent::Session::instance()->bannedIPs(), this);
|
||||
|
||||
m_sortFilter = new QSortFilterProxyModel(this);
|
||||
m_sortFilter->setDynamicSortFilter(true);
|
||||
|
@ -39,12 +39,11 @@
|
||||
ExecutionLogWidget::ExecutionLogWidget(QWidget *parent, const Log::MsgTypes &types)
|
||||
: QWidget(parent)
|
||||
, m_ui(new Ui::ExecutionLogWidget)
|
||||
, m_msgList(new LogListWidget(MAX_LOG_MESSAGES, Log::MsgTypes(types)))
|
||||
, m_peerList(new LogListWidget(MAX_LOG_MESSAGES))
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
|
||||
m_msgList = new LogListWidget(MAX_LOG_MESSAGES, Log::MsgTypes(types));
|
||||
|
||||
#ifndef Q_OS_MAC
|
||||
m_ui->tabConsole->setTabIcon(0, GuiIconProvider::instance()->getIcon("view-calendar-journal"));
|
||||
m_ui->tabConsole->setTabIcon(1, GuiIconProvider::instance()->getIcon("view-filter"));
|
||||
|
@ -561,7 +561,6 @@ QStringList TrackerFiltersList::getHashes(int row)
|
||||
TransferListFiltersWidget::TransferListFiltersWidget(QWidget *parent, TransferListWidget *transferList)
|
||||
: QFrame(parent)
|
||||
, m_transferList(transferList)
|
||||
, m_trackerFilters(nullptr)
|
||||
{
|
||||
Preferences *const pref = Preferences::instance();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user