From da113799adb1dd096f40c76ff1276904f4803e58 Mon Sep 17 00:00:00 2001 From: cranphin Date: Sat, 25 Sep 2010 14:32:16 +0000 Subject: [PATCH] GCS: Tiny cleanup, remove a member variable which wasn't really used. Makes stuff easier to understand :) git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1744 ebee16cc-31ac-478f-84a7-5cbb03baadba --- .../coreplugin/uavgadgetmanager/uavgadgetmanager.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetmanager.cpp b/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetmanager.cpp index 0877a3157..a115dc694 100644 --- a/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetmanager.cpp +++ b/ground/src/plugins/coreplugin/uavgadgetmanager/uavgadgetmanager.cpp @@ -126,11 +126,11 @@ namespace Core { struct UAVGadgetManagerPrivate { explicit UAVGadgetManagerPrivate(ICore *core, QWidget *parent); ~UAVGadgetManagerPrivate(); - Internal::UAVGadgetView *m_view; Internal::SplitterOrView *m_splitterOrView; QPointer m_currentGadget; ICore *m_core; + Internal::UAVGadgetClosingCoreListener *m_coreListener; // actions static QAction *m_showToolbarsAction; @@ -139,8 +139,6 @@ struct UAVGadgetManagerPrivate { static QAction *m_removeCurrentSplitAction; static QAction *m_removeAllSplitsAction; static QAction *m_gotoOtherSplitAction; - - Internal::UAVGadgetClosingCoreListener *m_coreListener; }; } @@ -152,7 +150,6 @@ QAction *UAVGadgetManagerPrivate::m_removeAllSplitsAction = 0; QAction *UAVGadgetManagerPrivate::m_gotoOtherSplitAction = 0; UAVGadgetManagerPrivate::UAVGadgetManagerPrivate(ICore *core, QWidget *parent) : - m_view(0), m_splitterOrView(0), m_core(core), m_coreListener(0) @@ -263,8 +260,7 @@ UAVGadgetManager::UAVGadgetManager(ICore *core, QWidget *parent) : // other setup m_d->m_splitterOrView = new SplitterOrView(this, 0, true); - m_d->m_view = m_d->m_splitterOrView->view(); - setCurrentGadget(m_d->m_view->gadget()); + setCurrentGadget(m_d->m_splitterOrView->view()->gadget()); QHBoxLayout *layout = new QHBoxLayout(this); layout->setMargin(0);