summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Poulain <ikipou@gmail.com>2010-11-13 16:49:36 +0100
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-11-20 18:53:18 +0100
commit3bd18150c214fab1b0840e5827a48d3dfff88c34 (patch)
tree404087003c4946f7d808e2655b6ce47f42fdbfef
parentRemove m_loadingGitPath from MainView (diff)
downloadrekonq-3bd18150c214fab1b0840e5827a48d3dfff88c34.tar.xz
Remove the destructor of MainView
The destructor of MainView was redundant with the cleaning mechanism of QObject. It is removed to simplify the class. Reviewed by: Pierre Rossi Reviewed by: Andrea Diamantini
-rw-r--r--src/mainview.cpp7
-rw-r--r--src/mainview.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 15d0edad..d080ad9a 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -95,13 +95,6 @@ MainView::MainView(MainWindow *parent)
}
-MainView::~MainView()
-{
- delete m_widgetBar;
- delete m_addTabButton;
-}
-
-
void MainView::postLaunch()
{
QStringList list = Application::sessionManager()->closedSites();
diff --git a/src/mainview.h b/src/mainview.h
index 042b6371..46e4133b 100644
--- a/src/mainview.h
+++ b/src/mainview.h
@@ -66,7 +66,6 @@ class REKONQ_TESTS_EXPORT MainView : public KTabWidget
public:
MainView(MainWindow *parent);
- ~MainView();
inline StackedUrlBar *widgetBar() const { return m_widgetBar; }
UrlBar *urlBar() const;