]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnCutPIDTPC.cxx
Fix for coverity
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutPIDTPC.cxx
index fbf8b6df35620e3ff5e0e901411ecc1c30b7369c..9235b01305ce7a04eeaa9faf482abb812c4d50af 100644 (file)
@@ -71,6 +71,8 @@ AliRsnCutPIDTPC& AliRsnCutPIDTPC::operator=(const AliRsnCutPIDTPC& copy)
 //
 
    AliRsnCut::operator=(copy);
+   if (this == &copy)
+    return *this;
 
    fRejectOutside = copy.fRejectOutside;
    fMomMin        = copy.fMomMin;