Fixing coverity 17982 and 17981
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Jan 2012 16:54:57 +0000 (16:54 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Jan 2012 16:54:57 +0000 (16:54 +0000)
EVE/EveDet/AliEveTPCSectorData.h

index 0c019f4..c2fb6f9 100644 (file)
@@ -62,10 +62,10 @@ public:
     {}
     virtual ~PadIterator() {}
 
-    PadIterator& operator=(const PadIterator& i) {
+    PadIterator& operator=(const PadIterator& i) {if(this!=&i){
       fBeg = i.fBeg; fEnd = i.fEnd; fPos = i.fPos;
       fTime = i.fTime; fSignal = i.fSignal; fThreshold = i.fThreshold; fNChunk = i.fNChunk;
-      return *this;
+      }return *this;
     }
 
     Bool_t Next();
@@ -101,9 +101,9 @@ public:
       fPadArray(i.fPadArray), fNPads(i.fNPads), fPad(i.fPad)
     {}
 
-    RowIterator& operator=(const RowIterator& i) {
+    RowIterator& operator=(const RowIterator& i) {if(this!=&i){
       fPadArray = i.fPadArray; fNPads = i.fNPads; fPad = i.fPad;
-      return *this;
+      }return *this;
     }
 
     Bool_t NextPad();