]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnListOutput.cxx
Fix for coverity
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnListOutput.cxx
index 0a04bc3aa2a0d5ca529e2e8bd91fea88b8a99ae1..bbb8434c135026cd6d03bb171f02b797c99b1e29 100644 (file)
@@ -79,17 +79,18 @@ const AliRsnListOutput& AliRsnListOutput::operator=(const AliRsnListOutput& copy
 // they are anyway reset.
 //
 
-   TNamed::operator=(copy);
-
-   fSkipFailed = copy.fSkipFailed;
-   fType = copy.fType;
-   fSteps = copy.fSteps;
-   fValues = copy.fValues;
-   fNValues = copy.fNValues;
-   fList = copy.fList;
-   fIndex = copy.fIndex;
-   fArray = copy.fArray;
-
+  TNamed::operator=(copy);
+  if (this == &copy)
+    return *this;
+  fSkipFailed = copy.fSkipFailed;
+  fType = copy.fType;
+  fSteps = copy.fSteps;
+  fValues = copy.fValues;
+  fNValues = copy.fNValues;
+  fList = copy.fList;
+  fIndex = copy.fIndex;
+  fArray = copy.fArray;
+  
    Reset();
 
    return (*this);