coverity fix
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Nov 2011 15:34:27 +0000 (15:34 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Nov 2011 15:34:27 +0000 (15:34 +0000)
MUON/AliMUONPainterDataSourceFrame.cxx

index 930f66e..60bc223 100644 (file)
@@ -742,8 +742,7 @@ AliMUONPainterDataSourceFrame::CreateRawDataSource(const TString& uri)
       TObject* o = e->GetObject();
       if ( o->IsA() == TObjArray::Class() )
       {
-        TObjArray* a = static_cast<TObjArray*>(o);
-        TIter next(a);
+        TIter next(static_cast<TObjArray*>(o));
         AliMUONRecoParam* p;
         while ( ( p = static_cast<AliMUONRecoParam*>(next()) ))
         {