Fix compiler warning (=operator)
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 5 Sep 2010 20:40:59 +0000 (20:40 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 5 Sep 2010 20:40:59 +0000 (20:40 +0000)
TRD/AliTRDqaBuildReference.cxx
TRD/AliTRDqaBuildReference.h

index de3b8fa..54c4c8e 100644 (file)
 
 //////////////////////////////////////////////////////////////////////////////////////
 
+//_____________________________________________________________________________
+AliTRDqaBuildReference &AliTRDqaBuildReference::operator=(const AliTRDqaBuildReference &qadm)
+{
+  //
+  // Assignment operator
+  //
+
+  if (this != &qadm) {
+    ((AliTRDqaBuildReference &) qadm).Copy(*this);
+  }
+
+  return *this;
+
+}
+
+//_____________________________________________________________________________
+void AliTRDqaBuildReference::Copy(TObject &/*qadm*/) const
+{
+  //
+  // Copy function
+  //
+
+}
+
 void  AliTRDqaBuildReference::BuildRefHistos(TFile *file) const
 {
   //
index f9afdff..792ee4c 100644 (file)
@@ -23,11 +23,10 @@ class AliTRDqaBuildReference: public TObject {
 
   AliTRDqaBuildReference() {}          // ctor
   AliTRDqaBuildReference(const AliTRDqaBuildReference& qadm):TObject(qadm) {}   
-  AliTRDqaBuildReference& operator = (const AliTRDqaBuildReference& qadm) 
-                                     { *(new(this) AliTRDqaBuildReference(qadm));
-                                       return *this; }
+  AliTRDqaBuildReference& operator = (const AliTRDqaBuildReference& qadm);
   virtual ~AliTRDqaBuildReference() {;} // dtor
   
+  virtual void Copy(TObject &/*qadm*/) const;
   void     BuildRefHistos(TFile *file) const;
   Double_t CalculateQuality(TH1D* /*measured*/, TH1D* /*reference*/) const {return 1.;}