Coverity 18290 solved by non-implemented private copy constructor and assignment...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Feb 2012 10:16:16 +0000 (10:16 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Feb 2012 10:16:16 +0000 (10:16 +0000)
PHOS/AliPHOSPulseGenerator.cxx
PHOS/AliPHOSPulseGenerator.h

index 8be79d0..dca6f08 100644 (file)
@@ -70,19 +70,6 @@ AliPHOSPulseGenerator::AliPHOSPulseGenerator(Double_t a, Double_t t0)
 }
 
 //-----------------------------------------------------------------------------
-AliPHOSPulseGenerator::AliPHOSPulseGenerator(const AliPHOSPulseGenerator & pulse)
-  : TObject(), fAmplitude(pulse.fAmplitude), fTZero(pulse.fTZero),fHG2LGratio(pulse.fHG2LGratio),
-  fDataHG(0), fDataLG(0), fDigitize(kTRUE)
-{
-  fDataHG = new Double_t[pulse.fkTimeBins];
-  fDataLG = new Double_t[pulse.fkTimeBins];
-  for (Int_t i=0; i<pulse.fkTimeBins; i++) {
-    fDataHG[i] = pulse.fDataHG[i];
-    fDataLG[i] = pulse.fDataHG[i];
-  }
-}
-
-//-----------------------------------------------------------------------------
 AliPHOSPulseGenerator::~AliPHOSPulseGenerator()
 {
   // Destructor: delete arrays of samples
index 30338a1..dcfaade 100644 (file)
@@ -18,7 +18,6 @@ class AliPHOSPulseGenerator : public TObject
 {
 public:
   AliPHOSPulseGenerator(Double_t a=0, Double_t t0=0);
-  AliPHOSPulseGenerator(const AliPHOSPulseGenerator & pulse);
   virtual  ~AliPHOSPulseGenerator();
 
   void      AddBaseline(Double_t baselineLevel);
@@ -48,6 +47,7 @@ public:
   virtual void Draw (Option_t* opt = "all");
 
 private:
+  AliPHOSPulseGenerator(const AliPHOSPulseGenerator & pulse);
   AliPHOSPulseGenerator& operator = (const AliPHOSPulseGenerator &) {return *this;}
 
 private: