Remove a redundant deletion of a QObject

This commit is contained in:
Guillaume Munch 2016-12-31 15:16:15 +01:00
parent cde3f6b84c
commit 832b99a394
2 changed files with 3 additions and 10 deletions

View File

@ -33,20 +33,15 @@ namespace lyx {
namespace frontend {
GuiToc::GuiToc(GuiView & parent, Qt::DockWidgetArea area, Qt::WindowFlags flags)
: DockView(parent, "toc", qt_("Outline"), area, flags), is_closing_(false)
: DockView(parent, "toc", qt_("Outline"), area, flags),
widget_(new TocWidget(parent, this)),
is_closing_(false)
{
widget_ = new TocWidget(parent, this);
setWidget(widget_);
setFocusProxy(widget_);
}
GuiToc::~GuiToc()
{
delete widget_;
}
void GuiToc::updateView()
{
widget_->updateView();

View File

@ -34,8 +34,6 @@ public:
Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
Qt::WindowFlags flags = 0);
~GuiToc();
///
bool initialiseParams(std::string const & data);
void updateView();