diff options
author | Benjamin Poulain <ikipou@gmail.com> | 2010-11-13 16:44:19 +0100 |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-11-20 18:53:04 +0100 |
commit | bf94b5e71b1a7cedf2f69bb3cd61661bc21c24c3 (patch) | |
tree | 455d3bfc296e7784b843fe248df96f3d05d186b4 /src/mainview.cpp | |
parent | Update the name of MainView attribute to follow the conventions (diff) | |
download | rekonq-bf94b5e71b1a7cedf2f69bb3cd61661bc21c24c3.tar.xz |
Make the invariants of MainView explicit
Enforce the invariant of MainView by making the pointer const.
Reviewed by: Pierre Rossi
Reviewed by: Andrea Diamantini
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 8432607a..e3e602b8 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -60,13 +60,12 @@ MainView::MainView(MainWindow *parent) : KTabWidget(parent) , m_widgetBar(new StackedUrlBar(this)) - , m_addTabButton(0) + , m_addTabButton(new QToolButton(this)) , m_currentTabIndex(0) , m_parentWindow(parent) { // setting tabbar TabBar *tabBar = new TabBar(this); - m_addTabButton = new QToolButton(this); setTabBar(tabBar); // set mouse tracking for tab previews |