]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliRecPoint.cxx
Initialize arrays in constructor (Ivana)
[u/mrichter/AliRoot.git] / STEER / AliRecPoint.cxx
index 183274095b9af13b5354f89ed4f9d4fdc6fb3881..18b01bb5bdda1be1a8591671499acfb252f320c9 100644 (file)
@@ -123,7 +123,7 @@ void AliRecPoint::AddDigit(AliDigitNew & digit)
     for ( index = 0 ; index < fMulDigit ; index++ )
       tempo[index] = fDigitsList[index] ; 
     
-    delete fDigitsList ; 
+    delete [] fDigitsList ; 
     fDigitsList = tempo ; 
   }
   
@@ -158,7 +158,7 @@ void AliRecPoint::Copy(TObject& recp) const
   // Copy *this onto pts
   //
   // Copy all first
-  if(this != &recp) {
+  if((TObject*)this != &recp) {
     ((TObject*) this)->Copy(recp);
     (dynamic_cast<AliRecPoint&>(recp)).fAmp = fAmp;
     (dynamic_cast<AliRecPoint&>(recp)).fGeom = fGeom;