From: morsch Date: Wed, 29 May 2013 15:10:55 +0000 (+0000) Subject: CID 21230: Uninitialized scalar field (UNINIT_CTOR) X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=68c67d1a6caab2fcd80cc0f5680906cffd9c6192;p=u%2Fmrichter%2FAliRoot.git CID 21230: Uninitialized scalar field (UNINIT_CTOR) --- diff --git a/PYTHIA8/pythia8175/include/HelicityBasics.h b/PYTHIA8/pythia8175/include/HelicityBasics.h index 8da831a2d06..49b7dc33896 100644 --- a/PYTHIA8/pythia8175/include/HelicityBasics.h +++ b/PYTHIA8/pythia8175/include/HelicityBasics.h @@ -190,7 +190,7 @@ public: double pyIn = 0., double pzIn = 0., double eIn = 0., double mIn = 0., double scaleIn = 0., ParticleData* ptr = 0) : Particle(idIn, statusIn, mother1In, mother2In, daughter1In, daughter2In, - colIn, acolIn, pxIn, pyIn, pzIn, eIn, mIn, scaleIn) { + colIn, acolIn, pxIn, pyIn, pzIn, eIn, mIn, scaleIn), idx(0), direction(1) { if (ptr) { setPDTPtr(ptr); setPDEPtr(); } rho = vector< vector >(spinStates(), vector(spinStates(), 0)); @@ -202,7 +202,7 @@ public: int daughter1In, int daughter2In, int colIn, int acolIn, Vec4 pIn, double mIn = 0., double scaleIn = 0., ParticleData* ptr = 0) : Particle(idIn, statusIn, mother1In, mother2In, daughter1In, daughter2In, - colIn, acolIn, pIn, mIn, scaleIn) { + colIn, acolIn, pIn, mIn, scaleIn), idx(0), direction(1) { if (ptr) { setPDTPtr(ptr); setPDEPtr();} rho = vector< vector >(spinStates(), vector(spinStates(), 0)); @@ -211,7 +211,7 @@ public: for (int i = 0; i < spinStates(); i++) { rho[i][i] = 0.5; D[i][i] = 1;} direction = 1; } HelicityParticle(const Particle& ptIn, ParticleData* ptr = 0) - : Particle(ptIn) { + : Particle(ptIn), idx(0), direction(1) { if (ptr) { setPDTPtr(ptr); setPDEPtr();} rho = vector< vector >(spinStates(), vector(spinStates(), 0));