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

index eb79579..f19f3bf 100644 (file)
@@ -198,36 +198,6 @@ AliPHOSDigitizer::AliPHOSDigitizer(TString alirunFileName,
 }
 
 //____________________________________________________________________________ 
-AliPHOSDigitizer::AliPHOSDigitizer(const AliPHOSDigitizer & d) : 
-  AliDigitizer(d),
-  fDefaultInit(d.fDefaultInit),
-  fDigitsInRun(d.fDigitsInRun),
-  fInit(d.fInit),
-  fInput(d.fInput),
-  fInputFileNames(0x0),
-  fEventNames(0x0),
-  fEmcCrystals(d.fEmcCrystals),
-  fEventFolderName(d.fEventFolderName),
-  fFirstEvent(d.fFirstEvent),
-  fLastEvent(d.fLastEvent), 
-  fcdb (new AliPHOSCalibData(-1)), 
-  fEventCounter(0),
-  fPulse(new AliPHOSPulseGenerator),
-  fADCValuesLG(0),
-  fADCValuesHG(0)
-{
-  // copyy ctor 
-  SetName(d.GetName()) ; 
-  SetTitle(d.GetTitle()) ; 
-  for (Int_t iInput=0; iInput<fInput; iInput++) {
-    fInputFileNames[iInput] = d.fInputFileNames[iInput];
-    fEventNames[iInput]     = d.fEventNames[iInput];
-  }
-  fADCValuesLG = new Int_t[fPulse->GetRawFormatTimeBins()];
-  fADCValuesHG = new Int_t[fPulse->GetRawFormatTimeBins()];
-}
-
-//____________________________________________________________________________ 
 AliPHOSDigitizer::AliPHOSDigitizer(AliDigitizationInput * rd) :
   AliDigitizer(rd,"PHOSDigitizer"),
   fDefaultInit(kFALSE),
index 68ca72d..bcd7f29 100644 (file)
@@ -53,7 +53,6 @@ class AliPHOSDigitizer: public AliDigitizer {
 public:
   AliPHOSDigitizer() ;          // ctor
   AliPHOSDigitizer(TString alirunFileNameFile, TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ; 
-  AliPHOSDigitizer(const AliPHOSDigitizer & dtizer) ;
   AliPHOSDigitizer(AliDigitizationInput * digInput) ;
   virtual ~AliPHOSDigitizer() ;       
 
@@ -68,11 +67,8 @@ public:
   void    Print(const Option_t * = "")const ;
  
 private:
-  AliPHOSDigitizer & operator = (const AliPHOSDigitizer & /*rvalue*/)  {
-    return *this ; 
-  }
-  
-private:
+  AliPHOSDigitizer(const AliPHOSDigitizer & dtizer) ;
+  AliPHOSDigitizer & operator = (const AliPHOSDigitizer & /*rvalue*/);
 
   virtual Bool_t Init() ; 
   void    InitParameters() ;