mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-23 02:51:33 +02:00
Add explicit destructor to BrowseDialog.
There is no point adding virtual destructors to the subclasses if the superclass has a non-virtual default destructor...
This commit is contained in:
parent
660b4f01aa
commit
9c5799c842
@ -30,6 +30,10 @@ BrowseDialog::BrowseDialog(GMenu2X *gmenu2x, const string &title,
|
|||||||
iconFile = gmenu2x->sc.skinRes("imgs/file.png");
|
iconFile = gmenu2x->sc.skinRes("imgs/file.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BrowseDialog::~BrowseDialog()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
bool BrowseDialog::exec()
|
bool BrowseDialog::exec()
|
||||||
{
|
{
|
||||||
if (!fl)
|
if (!fl)
|
||||||
|
@ -35,6 +35,7 @@ using std::vector;
|
|||||||
class BrowseDialog : protected Dialog {
|
class BrowseDialog : protected Dialog {
|
||||||
protected:
|
protected:
|
||||||
BrowseDialog(GMenu2X *gmenu2x, const string &title, const string &subtitle);
|
BrowseDialog(GMenu2X *gmenu2x, const string &title, const string &subtitle);
|
||||||
|
virtual ~BrowseDialog();
|
||||||
|
|
||||||
void setPath(const string &path) {
|
void setPath(const string &path) {
|
||||||
fl->setPath(path);
|
fl->setPath(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user