From 55cd883fcc6e83d68525694aca9a12c03f810834 Mon Sep 17 00:00:00 2001 From: hristov Date: Sun, 21 Oct 2001 19:17:12 +0000 Subject: [PATCH] Several pointers were set to zero in the default constructors to avoid memory management problems --- ITS/AliITSClusterFinder.cxx | 1 + ITS/AliITSTrackV1.cxx | 1 + ITS/AliITSTrackerV1.cxx | 18 ++++++++++++++++++ ITS/AliITSTrackerV1.h | 1 + 4 files changed, 21 insertions(+) diff --git a/ITS/AliITSClusterFinder.cxx b/ITS/AliITSClusterFinder.cxx index 82155b7674a..3c023cb7559 100644 --- a/ITS/AliITSClusterFinder.cxx +++ b/ITS/AliITSClusterFinder.cxx @@ -48,6 +48,7 @@ AliITSClusterFinder::AliITSClusterFinder() { // constructor fResponse=0; + fSegmentation = 0; fDigits=0; fNdigits = 0; diff --git a/ITS/AliITSTrackV1.cxx b/ITS/AliITSTrackV1.cxx index ec2291639f7..4a6b0f84705 100644 --- a/ITS/AliITSTrackV1.cxx +++ b/ITS/AliITSTrackV1.cxx @@ -21,6 +21,7 @@ AliITSTrackV1::AliITSTrackV1() { //Origin A. Badala' and G.S. Pappalardo: e-mail Angela.Badala@ct.infn.it, Giuseppe.S.Pappalardo@ct.infn.it // default constructor + fTPCtrack = 0; fC00=fC10=fC11=fC20=fC21=fC22=fC30=fC31=fC32=fC33=fC40=fC41=fC42=fC43=fC44=0.; flistCluster = new TObjArray; fNumClustInTrack =0; diff --git a/ITS/AliITSTrackerV1.cxx b/ITS/AliITSTrackerV1.cxx index 4c57ac1e44b..672ae9e2365 100644 --- a/ITS/AliITSTrackerV1.cxx +++ b/ITS/AliITSTrackerV1.cxx @@ -15,6 +15,10 @@ /* $Log$ +Revision 1.12 2001/10/19 21:32:35 nilsen +Minor changes to remove compliation warning on gcc 2.92.2 compiler, and +cleanded up a little bit of code. + */ // The purpose of this class is to permorm the ITS tracking. The // constructor has the task to inizialize some private members. The method @@ -58,6 +62,20 @@ $Log$ #include "AliITSVertex.h" ClassImp(AliITSTrackerV1) + //______________________________________________________________________ +AliITSTrackerV1::AliITSTrackerV1() { + //Default constructor + fITS = 0; + fresult = 0; + frecPoints = 0; + fvettid = 0; + frl = 0; + fzmin = 0; + fzmax = 0; + fphimin = 0; + fphimax = 0; + fphidet = 0; +} //______________________________________________________________________ AliITSTrackerV1::AliITSTrackerV1(AliITS* IITTSS, Bool_t flag) { //Origin A. Badala' and G.S. Pappalardo: diff --git a/ITS/AliITSTrackerV1.h b/ITS/AliITSTrackerV1.h index 8588b4b421e..1a7df6a71ff 100644 --- a/ITS/AliITSTrackerV1.h +++ b/ITS/AliITSTrackerV1.h @@ -36,6 +36,7 @@ class TStopwatch; class AliITSTrackerV1 : public TObject { public: + AliITSTrackerV1(); AliITSTrackerV1(AliITS* IITTSS, Bool_t flag); AliITSTrackerV1(const AliITSTrackerV1 &cobj); ~AliITSTrackerV1(); -- 2.43.0