]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
remove double definition of destructors
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Oct 1999 08:25:25 +0000 (08:25 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Oct 1999 08:25:25 +0000 (08:25 +0000)
ITS/AliITSv1.cxx
ITS/AliITSv3.cxx

index 9b5ff827125c17cdddd9cba5f78f3f329ca8e758..a4c68755e6687a695db1846ae281b8578bea58d1 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.11  1999/10/22 08:16:49  fca
+Correct destructors, thanks to I.Hrivnacova
+
 Revision 1.10  1999/10/06 19:56:50  fca
 Add destructor
 
@@ -67,13 +70,7 @@ AliITSv1::AliITSv1() {
     fId1Name[4] = "ITS5";
     fId1Name[5] = "ITS6";
 }
-//_____________________________________________________________________________
-AliITSv1::~AliITSv1() {
-    //
-    // Standard destructor for the ITS
-    //
-  delete [] fId1Name;
-}  
+
 //_____________________________________________________________________________
 AliITSv1::AliITSv1(const char *name, const char *title) : AliITS(name, title){ 
     //
@@ -94,9 +91,7 @@ AliITSv1::~AliITSv1() {
     //
     // Standard destructor for the ITS
     //
-  for (Int_t i=0;i<fId1N;++i) delete [] fId1Name[i];
   delete [] fId1Name;
-  fId1Name = 0;
 }
 
 //_____________________________________________________________________________
index 1bc421e0277f4dc02deb95f0d76d3c1b4ed9b5c3..9b7da5061f3a28ebe96ea5144c375ec301a0c42b 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.10  1999/10/22 08:16:49  fca
+Correct destructors, thanks to I.Hrivnacova
+
 Revision 1.9  1999/10/06 19:56:50  fca
 Add destructor
 
@@ -69,21 +72,13 @@ AliITSv3::AliITSv3() {
     fId3Name[5] = "ITS6";
     fMinorVersionV3=1;
 }
+
 //_____________________________________________________________________________
 AliITSv3::~AliITSv3() {
     //
     // Standard destructor for the ITS
     //
   delete [] fId3Name;
-}  
-//_____________________________________________________________________________
-AliITSv3::~AliITSv3() {
-    //
-    // Standard destructor for the ITS
-    //
-  for (Int_t i=0;i<fId3N;++i) delete [] fId3Name[i];
-  delete [] fId3Name;
-  fId3Name = 0;
 }
 
 //_____________________________________________________________________________