Cleanup private part of Layout Box on destructor (probably not really an

issue, but brings less noise about memory leaks when using valgrind).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39864 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Tommaso Cucinotta 2011-10-15 13:34:14 +00:00
parent cb9e09f29e
commit f4400845af
2 changed files with 6 additions and 0 deletions

View File

@ -418,6 +418,11 @@ LayoutBox::LayoutBox(GuiView & owner)
}
LayoutBox::~LayoutBox() {
delete d;
}
void LayoutBox::Private::countCategories()
{
int n = filterModel_->rowCount();

View File

@ -35,6 +35,7 @@ class LayoutBox : public QComboBox
Q_OBJECT
public:
LayoutBox(GuiView &);
~LayoutBox();
/// select the right layout in the combobox.
void set(docstring const & layout);