]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnLoop.cxx
Fix Coverity
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnLoop.cxx
index b59d57a8793b7d89711b97028ce640b98f9e3e71..1ca8eebaab416e3da39cc549fe0635deaae12b74 100644 (file)
@@ -1,8 +1,8 @@
 //
 // Base class to implement any computation within the RSN package.
-// It contains only an array of output objects which must derive 
+// It contains only an array of output objects which must derive
 // from AliRsnOutput.
-// Its core functions ar Init() and DoLoop() which must be 
+// Its core functions ar Init() and DoLoop() which must be
 // overloaded by any class which inherits from this.
 //
 
@@ -30,7 +30,7 @@ AliRsnLoop::AliRsnLoop(const char *name, Bool_t isMixed) :
 }
 
 //_____________________________________________________________________________
-AliRsnLoop::AliRsnLoop(const AliRsnLoopcopy) :
+AliRsnLoop::AliRsnLoop(const AliRsnLoop &copy) :
    TNamed(copy),
    fIsMixed(copy.fIsMixed),
    fEventCuts(copy.fEventCuts),
@@ -42,17 +42,17 @@ AliRsnLoop::AliRsnLoop(const AliRsnLoop& copy) :
 }
 
 //_____________________________________________________________________________
-AliRsnLoop& AliRsnLoop::operator=(const AliRsnLoop& copy)
+AliRsnLoop &AliRsnLoop::operator=(const AliRsnLoop &copy)
 {
 //
 // Assignment operator
 //
-  if (this == &copy)
-    return *this;
-  fIsMixed = copy.fIsMixed;
-  fEventCuts = copy.fEventCuts;
-  fOutputs = copy.fOutputs;
-  return (*this);
+   if (this == &copy)
+      return *this;
+   fIsMixed = copy.fIsMixed;
+   fEventCuts = copy.fEventCuts;
+   fOutputs = copy.fOutputs;
+   return (*this);
 }
 
 //_____________________________________________________________________________
@@ -73,22 +73,22 @@ void AliRsnLoop::AddOutput(TObject *object)
 //
 
    //fOutputs.AddLast(out);
-   AliRsnListOutput *out = (AliRsnListOutput*)object;
+   AliRsnListOutput *out = (AliRsnListOutput *)object;
    Int_t n = fOutputs.GetEntries();
    new (fOutputs[n]) AliRsnListOutput(*out);
 }
 
 //_____________________________________________________________________________
-void AliRsnLoop::Print(Option_t*) const
+void AliRsnLoop::Print(Option_t *) const
 {
 //
 // Prints info about pair
 //
-   
+
    TObjArrayIter next(&fOutputs);
    AliRsnListOutput *out = 0x0;
-   
-   while ( (out = (AliRsnListOutput*)next()) ) {
+
+   while ( (out = (AliRsnListOutput *)next()) ) {
       out->Print();
    }
 }
@@ -100,7 +100,7 @@ Bool_t AliRsnLoop::OkEvent(AliRsnEvent *rsn)
 // If event cuts are defined, check event against them
 //
 
-   if (fEventCuts) 
+   if (fEventCuts)
       return fEventCuts->IsSelected(rsn);
    else
       return kTRUE;
@@ -118,11 +118,11 @@ Bool_t AliRsnLoop::Init(const char *prefix, TList *list)
    TObjArrayIter next(&fOutputs);
    AliRsnListOutput *out;
    Bool_t globalOK = kTRUE;
-   
-   while ( (out = (AliRsnListOutput*)next()) ) {
+
+   while ( (out = (AliRsnListOutput *)next()) ) {
       globalOK = globalOK && out->Init(prefix, list);
    }
-   
+
    AliInfo(Form("[%s] Object initialization: %s", GetName(), (globalOK ? "successful" : "failed")));
    return globalOK;
 }