Fix coverity warnings complaints
authorquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Jul 2013 09:29:27 +0000 (09:29 +0000)
committerquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Jul 2013 09:29:27 +0000 (09:29 +0000)
EVE/EveBase/AliEveMainWindow.cxx

index 610910b..12d5601 100644 (file)
@@ -36,35 +36,35 @@ using namespace std;
 
 AliEveMainWindow::AliEveMainWindow(const char* title, UInt_t width, UInt_t height)
     : TGMainFrame(gClient->GetRoot(), width, height),
+      fMenuBar(0),
+      fMenuFile(0),
+      fMenuEdit(0),
+      fMenuView(0),
+      fMenuViewToolbars(0),
+      fMenuViewSidebars(0),
+      fMenuGo(0),
+      fMenuTools(0),
+      fMenuHelp(0),
+      fToolBar(0),
+      fPicturePool(0),
       fEve(0),
       fFileDialog(0)
 {
 
     AliEveUtil::Init();
     fPicturePool = AliEveUtil::GetPicturePool();
-
-    static const TEveException kEH("AliEveMainWindow::AliEveMainWindow");
-
-    if(!fPicturePool) cout<< "Couldnt get a PicturePool"<<endl;
-
-
-    fEve = TEveManager::Create(kFALSE, "V");
+   
+    fEve = TEveManager::Create(kFALSE, "VVV");
     gEve->GetDefaultViewer()->SetElementName("3D View");
     gEve->GetSelection()->SetPickToSelect(TEveSelection::kPS_PableCompound);
     gEve->GetHighlight()->SetPickToSelect(TEveSelection::kPS_PableCompound);
 
     TString evedir(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
     gEve->RegisterGeometryAlias("Default", Form("%s/alice-data/default_geo.root", evedir.Data()));
-
+    
     setupMenus();
     setupToolbars();
 
-    TGFrame* viewFrame = gEve->GetDefaultViewer()->GetGUIFrame();
-    viewFrame->MapWindow();
-    viewFrame->ReparentWindow(this);
-
-    AddFrame(viewFrame, new TGLayoutHints(kLHintsNormal | kLHintsExpandX | kLHintsExpandY , 3, 3, 3, 3));
-
     SetWindowName(title);
     Resize(width,height);
     MapSubwindows();
@@ -150,12 +150,12 @@ void AliEveMainWindow::onMenuFileItem(UInt_t id)
     }
 }
 
-void AliEveMainWindow::onMenuEditItem(UInt_t id)
+void AliEveMainWindow::onMenuEditItem(UInt_t /*id*/)
 {
 
 }
 
-void AliEveMainWindow::onMenuViewItem(UInt_t id)
+void AliEveMainWindow::onMenuViewItem(UInt_t /*id*/)
 {
 
 }