]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnCutValue.cxx
Fix for coverity
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutValue.cxx
index 5fe68c16d1a4ac5a4ab67ad2536775894c9e301a..b6cba21a1d3baa803eba688664a5df6a06b2caa9 100644 (file)
@@ -68,10 +68,13 @@ AliRsnCutValue& AliRsnCutValue::operator=(const AliRsnCutValue& copy)
 // Does not duplicate memory allocation.
 //
 
-   AliRsnCut::operator=(copy);
-   fValue = copy.fValue;
-
-   return (*this);
+  AliRsnCut::operator=(copy);
+  if (this == &copy)
+    return *this;
+  
+  fValue = copy.fValue;
+  
+  return (*this);
 }
 
 //_________________________________________________________________________________________________