]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnValueEvent.cxx
Fix for coverity
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnValueEvent.cxx
index f51b62708bbca8e256e901af8315cef8c9c66517..9be11dd07c4523cb96ed8a7675c05216e736dd15 100644 (file)
@@ -83,10 +83,12 @@ AliRsnValueEvent& AliRsnValueEvent::operator=(const AliRsnValueEvent& copy)
 // Works like copy constructor.
 //
 
-   AliRsnValue::operator=(copy);
-   fType = copy.fType;
-
-   return (*this);
+  AliRsnValue::operator=(copy);
+  if (this == &copy)
+    return *this;
+  fType = copy.fType;
+  
+  return (*this);
 }
 
 //_____________________________________________________________________________