]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenReaderTreeK.cxx
Fixes for Coverity warnings - M. van Leeuwen
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderTreeK.cxx
index f3e8411468c35ee95b0a8b77eba7a11a87b1ccae..5f31a5b7312b6acc056c34fd1e3836dddf6b7b5a 100644 (file)
@@ -32,7 +32,7 @@
 #include "AliRun.h"
 #include "AliRunLoader.h"
 
-ClassImp(AliGenReaderTreeK);
+ClassImp(AliGenReaderTreeK)
 
 const TString AliGenReaderTreeK::fgkEventFolderName("GenReaderTreeK");
 
@@ -79,7 +79,7 @@ void AliGenReaderTreeK::Init()
 // Initialization
 // Connect base file and file to read from
 
-    TTree *ali = gAlice->TreeE();
+    TTree *ali = AliRunLoader::Instance()->TreeE();
     if (ali) {
       fBaseFile = ali->GetCurrentFile();
     } else {
@@ -159,7 +159,7 @@ AliGenReaderTreeK& AliGenReaderTreeK::operator=(const  AliGenReaderTreeK& rhs)
     return *this;
 }
 
-void AliGenReaderTreeK::Copy(AliGenReaderTreeK&) const
+void AliGenReaderTreeK::Copy(TObject&) const
 {
     //
     // Copy