]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HBTAN/AliHBTParticleCut.cxx
Corrections to obey the coding conventions
[u/mrichter/AliRoot.git] / HBTAN / AliHBTParticleCut.cxx
index db244e37c5f0b8942192e0f0d259ba1127e3e7de..40c2a9facc7787430bcd8971c3196886d96a8bc5 100644 (file)
@@ -202,13 +202,15 @@ void AliHBTParticleCut::Streamer(TBuffer &b)
    UInt_t R__s, R__c;
    if (b.IsReading()) 
     {
-      /* Version_t v = */ b.ReadVersion(&R__s, &R__c);
+      Int_t i;
+      for (i = 0;i<fNCuts;i++) delete fCuts[i];
+      b.ReadVersion(&R__s, &R__c);
       TObject::Streamer(b);
       b >> fPID;
       b >> fNCuts;
-      for (Int_t i = 0;i<fNCuts;i++)
+      for (i = 0;i<fNCuts;i++) 
        {
-        b >> fCuts[i];
+         b >> fCuts[i];
        }
        b.CheckByteCount(R__s, R__c,AliHBTParticleCut::IsA());
     }