Fix for Coverity warning 22314
authorMassimo Masera <massimo.masera@cern.ch>
Mon, 13 Jan 2014 11:41:05 +0000 (12:41 +0100)
committerMassimo Masera <massimo.masera@cern.ch>
Mon, 13 Jan 2014 11:41:05 +0000 (12:41 +0100)
ITS/AliITSQASDDChecker.cxx

index e74f8c3..0f1bdc1 100644 (file)
@@ -1284,14 +1284,7 @@ Bool_t  AliITSQASDDChecker::MakeSDDImage( TObjArray ** list, AliQAv1::TASKINDEX_
     case AliQAv1::kNULLTASKINDEX:; case  AliQAv1::kNTASKINDEX: 
       {
        Int_t ts=(Int_t)task;
-       TString str;
-       if(ts>-1 && ts <9){
-         str= AliQAv1::GetTaskName(task);
-       }
-       else {
-         str="UNDEFINED";
-       }
-       AliWarning(Form("No histograms for this task ( %s ) \n", str.Data())); 
+       AliWarning(Form("No histograms for this task number %d  \n", ts)); 
        rval=kFALSE;
       }
       break;