]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnPairDef.cxx
Fix for coverity
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnPairDef.cxx
index 1eb34aa8a4222990aff6e13590d44413b6e2750c..8163da9669bc8dc3305f9456b2bb8f7ab302a332 100644 (file)
@@ -99,11 +99,12 @@ const AliRsnPairDef& AliRsnPairDef::operator=(const AliRsnPairDef &copy)
 //
 // Assignment operator with standard behavior.
 //
-
-   fMotherMass = copy.fMotherMass;
-   fMotherPDG = copy.fMotherPDG;
-   fDef1 = copy.fDef1;
-   fDef2 = copy.fDef2;
-
+  if (this == &copy)
+    return *this;
+  fMotherMass = copy.fMotherMass;
+  fMotherPDG = copy.fMotherPDG;
+  fDef1 = copy.fDef1;
+  fDef2 = copy.fDef2;
+  
    return (*this);
 }