]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
coverity fix
authoramastros <amastros@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Mar 2011 10:17:22 +0000 (10:17 +0000)
committeramastros <amastros@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Mar 2011 10:17:22 +0000 (10:17 +0000)
ITS/UPGRADE/AliITSDigitUpgrade.h

index 5bbeb169d01b70747eb04f03af6dfded70061762..3101db735247a2a7e7102065e87ef3b19a16ad84 100644 (file)
@@ -77,15 +77,16 @@ class AliITSDigitUpgrade: public AliDigit {
 Int_t AliITSDigitUpgrade::Compare(const TObject *pObj) const
 {
   // Arguments: pObj - pointer to object to compare with
-  //   Returns: -1 if AbsPad less then in pObj, 1 if more and 0 if they are the same      
+  //        
 
-   if (fModule>((AliITSDigitUpgrade*)pObj)->GetModule())return 1;      
+  Int_t result = -1;
+   if (fModule>((AliITSDigitUpgrade*)pObj)->GetModule()) result=1;      
 
   else  if(fModule==((AliITSDigitUpgrade*)pObj)->GetModule()){
-   if     (fPixId==((AliITSDigitUpgrade*)pObj)->GetPixId()) return  0;
-   else if(fPixId >((AliITSDigitUpgrade*)pObj)->GetPixId()) return  1;
+   if     (fPixId==((AliITSDigitUpgrade*)pObj)->GetPixId()) result=0;
+   else if(fPixId >((AliITSDigitUpgrade*)pObj)->GetPixId()) result=1;
    }
-  else                                         return -1;
+  return result;
 }