1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-26 01:50:16 +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:
Maarten ter Huurne 2010-06-19 04:51:53 +02:00
parent 660b4f01aa
commit 9c5799c842
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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);