]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDCalibGain.cxx
coverity fix
[u/mrichter/AliRoot.git] / FMD / AliFMDCalibGain.cxx
index 064e9a8c1fb5180e2ab26d782c4c6c89fed554de..72ac806bd7f9c7cca6620a4fd0909d971e739def 100644 (file)
@@ -65,6 +65,7 @@ AliFMDCalibGain&
 AliFMDCalibGain::operator=(const AliFMDCalibGain& o)
 {
   // Assignment operator 
+  if (&o == this) return *this; 
   fValue     = o.fValue;
   fThreshold = o.fThreshold;
   return (*this);
@@ -97,11 +98,13 @@ namespace {
       : fDead(dead), fMin(min), fMax(max), fCount(0)
     {}
     MakeDead(const MakeDead& other) 
-      : fDead(other.fDead), fMin(other.fMin), fMax(other.fMax), 
+      : AliFMDMap::ForOne(other),
+        fDead(other.fDead), fMin(other.fMin), fMax(other.fMax), 
        fCount(other.fCount)
     {}
     MakeDead& operator=(const MakeDead& other) 
     { 
+      if (&other == this) return *this; 
       fDead   = other.fDead;
       fMin    = other.fMin;
       fMax    = other.fMax;