forked from qt-creator/qt-creator
Terminal: Remove unnecessary destructor
Calling Aggregate::remove is not necessary and led to a warning message. Change-Id: I51cdd7bfa9bdda7a3ebedf6a86e48fe54fd8f3ef Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -128,13 +128,6 @@ TerminalWidget::TerminalWidget(QWidget *parent, const OpenTerminalParameters &op
|
||||
m_aggregate->add(m_search.get());
|
||||
}
|
||||
|
||||
TerminalWidget::~TerminalWidget()
|
||||
{
|
||||
// The Aggregate stuff tries to do clever deletion of the children, but we
|
||||
// we don't want that.
|
||||
m_aggregate->remove(this);
|
||||
}
|
||||
|
||||
void TerminalWidget::setupPty()
|
||||
{
|
||||
m_process = std::make_unique<Process>();
|
||||
|
||||
@@ -29,7 +29,6 @@ class TerminalWidget : public QAbstractScrollArea
|
||||
public:
|
||||
TerminalWidget(QWidget *parent = nullptr,
|
||||
const Utils::Terminal::OpenTerminalParameters &openParameters = {});
|
||||
~TerminalWidget() override;
|
||||
|
||||
void setFont(const QFont &font);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user