]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnDaughterDef.cxx
Fix for coverity
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnDaughterDef.cxx
index 40867383508b0016345093c74d9516c0d53fcabb..ed74d66fa3d9ba66b929052fc500248ea5a000b1 100644 (file)
@@ -104,7 +104,9 @@ const AliRsnDaughterDef& AliRsnDaughterDef::operator=(const AliRsnDaughterDef &c
 //
 // Assignment operator has standard behavior.
 //
-
+  if (this == &copy)
+    return *this;
+  
    fMass = copy.fMass;
    fCharge = copy.fCharge;
    fPID = copy.fPID;