]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnEvent.cxx
Fix for coverity
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnEvent.cxx
index 18d596bd28f7114bace8d822230edab80a0e6127..a11bb284a10d8da6114d82e0f5919bcf053fb888 100644 (file)
@@ -70,8 +70,9 @@ AliRsnEvent& AliRsnEvent::operator= (const AliRsnEvent & event)
 //
 // Works in the same way as the copy constructor.
 //
-
    TObject::operator=(event);
+  if (this == &copy)
+    return *this;
    fRef             = event.fRef;
    fRefMC           = event.fRefMC;
    fLeading         = event.fLeading;