]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSBeamTestDigSSD.cxx
Changes for bug #70680: AliROOT Coverity DELETE_ARRAY checker fix
[u/mrichter/AliRoot.git] / ITS / AliITSBeamTestDigSSD.cxx
index 9c347534fcca056e121792df24b7e0b018785a73..52c83a17477114c7d0fdb260dd517972dc6cfa32 100644 (file)
@@ -57,9 +57,10 @@ void AliITSBeamTestDigSSD::Exec(Option_t* /*opt*/) {
     for(Int_t nlad=1;nlad<=fITSgeom->GetNladders(nlay);nlad++){
       for(Int_t ndet=1;ndet<=fITSgeom->GetNdetectors(nlay);ndet++){
        Int_t index=fITSgeom->GetModuleIndex(nlay,nlad,ndet);
-       if(fITSgeom->GetModuleTypeName(index)=="kSPD") nspd++;
-       if(fITSgeom->GetModuleTypeName(index)=="kSDD") nsdd++;
-       if(fITSgeom->GetModuleTypeName(index)=="kSSD") nssd++;
+       TString dtype(fITSgeom->GetModuleTypeName(index));
+       if(dtype.Contains("SPD")) nspd++;
+       if(dtype.Contains("SDD")) nsdd++;
+       if(dtype.Contains("SSD")) nssd++;
       }
     }
   }
@@ -115,7 +116,7 @@ void AliITSBeamTestDigSSD::Exec(Option_t* /*opt*/) {
   }
   
   delete [] newdigits;
-  delete idig;
+  delete [] idig;
 }