]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 0c019f4e0e3756c46b713490f67766ff40065b5d..c2fb6f9634cdd2e263f4eedb1e603c4a249be30c 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();