From 3bd18150c214fab1b0840e5827a48d3dfff88c34 Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Sat, 13 Nov 2010 16:49:36 +0100 Subject: 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 --- src/mainview.cpp | 7 ------- src/mainview.h | 1 - 2 files changed, 8 deletions(-) (limited to 'src') 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; -- cgit v1.2.1