Coverity fix.
authorpolicheh <Boris.Polishchuk@cern.ch>
Wed, 3 Sep 2014 12:51:34 +0000 (16:51 +0400)
committerpolicheh <Boris.Polishchuk@cern.ch>
Wed, 3 Sep 2014 12:51:34 +0000 (16:51 +0400)
PHOS/AliPHOSDApi0mip.cxx

index a2e97fb..b4cf9f2 100644 (file)
@@ -191,7 +191,7 @@ bool AliPHOSDApi0mip::CreateHist(){
   snprintf(hname,100,"h1_time_mod%d_iter%d",fMod,fIterId);
   snprintf(htitle,100,"Time : Mod:%d Iter:%d",fMod,fIterId);
   fH1Time = (TH1I*) gDirectory->Get(hname);
-  if( fH1Time>0 ){
+  if( fH1Time ){
     std::cout<<" AliPHOSDApi0mip:Warning!! Output object already exist : "<<fH1Time->GetName()<<std::endl;
     return false;
   }