Coverity 19664
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 25 Mar 2012 15:27:23 +0000 (15:27 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 25 Mar 2012 15:27:23 +0000 (15:27 +0000)
ITS/AliITSQASDDChecker.cxx

index dbf8ad7..2ac6986 100644 (file)
@@ -292,7 +292,7 @@ Double_t AliITSQASDDChecker::Check(AliQAv1::ALITASK_t index, const TObjArray * l
              else  if(hname.Contains("4"))layer1=1;
                        TH2* htemp=dynamic_cast<TH2*>(hdata);
                        if(htemp){
-                               hlayer[layer1]=(TH2*)((dynamic_cast<TH2*>(hdata))->Clone());
+                         hlayer[layer1]=(TH2*)htemp->Clone();
                                hlayer[layer1]->SetName(Form("%s_copy",hname.Data()));
                                int modmay=hlayer[layer1]->GetNbinsY();
                                TH1D* hproj= hlayer[layer1]->ProjectionY();