mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Utilize parent pointer appropriately
This commit is contained in:
parent
874bc84efc
commit
cb9a160366
1 changed files with 2 additions and 4 deletions
|
@ -40,8 +40,8 @@
|
|||
ExecutionLogWidget::ExecutionLogWidget(QWidget *parent, const Log::MsgTypes &types)
|
||||
: QWidget(parent)
|
||||
, m_ui(new Ui::ExecutionLogWidget)
|
||||
, m_msgList(new LogListWidget(MAX_LOG_MESSAGES, types))
|
||||
, m_peerList(new LogListWidget(MAX_LOG_MESSAGES))
|
||||
, m_msgList(new LogListWidget(MAX_LOG_MESSAGES, types, this))
|
||||
, m_peerList(new LogListWidget(MAX_LOG_MESSAGES, Log::ALL, this))
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
|
||||
|
@ -63,8 +63,6 @@ ExecutionLogWidget::ExecutionLogWidget(QWidget *parent, const Log::MsgTypes &typ
|
|||
|
||||
ExecutionLogWidget::~ExecutionLogWidget()
|
||||
{
|
||||
delete m_msgList;
|
||||
delete m_peerList;
|
||||
delete m_ui;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue