author | alwin <alwin> | 2004-01-07 00:08:02 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-01-07 00:08:02 (UTC) |
commit | a0ea0a96c91d95aa379a086238de18075ee5e4b5 (patch) (side-by-side diff) | |
tree | 8f4f558d6cc00675cd4584fe82c24ab59638a1ea | |
parent | a545ea9b957c14bdf9d8aa20e64457b64841ce7f (diff) | |
download | opie-a0ea0a96c91d95aa379a086238de18075ee5e4b5.zip opie-a0ea0a96c91d95aa379a086238de18075ee5e4b5.tar.gz opie-a0ea0a96c91d95aa379a086238de18075ee5e4b5.tar.bz2 |
why didn't them have any destructor?
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 5 | ||||
-rw-r--r-- | noncore/net/mail/mainwindow.h | 1 | ||||
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 5 | ||||
-rw-r--r-- | noncore/net/mail/opiemail.h | 1 |
4 files changed, 11 insertions, 1 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index d2e887b..e16f853 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp @@ -83,3 +83,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) SLOT( slotEditSettings() ) ); - editAccounts = new QAction( tr( "Configure accounts" ), QIconSet( Resource::loadPixmap("SettingsIcon") ) , + editAccounts = new QAction( tr( "Configure accounts" ), QIconSet( Resource::loadPixmap("mail/editaccounts") ) , 0, 0, this ); @@ -133,2 +133,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) +MainWindow::~MainWindow() +{ +} diff --git a/noncore/net/mail/mainwindow.h b/noncore/net/mail/mainwindow.h index 0e077f6..15d216a 100644 --- a/noncore/net/mail/mainwindow.h +++ b/noncore/net/mail/mainwindow.h @@ -21,2 +21,3 @@ public: MainWindow( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); + virtual ~MainWindow(); diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp index fcd48e2..c888708 100644 --- a/noncore/net/mail/opiemail.cpp +++ b/noncore/net/mail/opiemail.cpp @@ -32,2 +32,7 @@ OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) +OpieMail::~OpieMail() +{ + if (settings) delete settings; +} + void OpieMail::appMessage(const QCString &msg, const QByteArray &data) diff --git a/noncore/net/mail/opiemail.h b/noncore/net/mail/opiemail.h index ebed5d8..69b8d43 100644 --- a/noncore/net/mail/opiemail.h +++ b/noncore/net/mail/opiemail.h @@ -13,2 +13,3 @@ public: OpieMail( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); + virtual ~OpieMail(); static QString appName() { return QString::fromLatin1("opiemail"); } |