mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Remove a redundant deletion of a QObject
This commit is contained in:
parent
cde3f6b84c
commit
832b99a394
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user