]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Code causing warning messages corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Aug 2003 10:04:44 +0000 (10:04 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Aug 2003 10:04:44 +0000 (10:04 +0000)
STEER/AliModule.h
STRUCT/AliALIFE.cxx
STRUCT/AliALIFE.h

index ce7efac429690afc2fc7068ff94c684ccd9c726b..d0ce153451ffdb6a807618521e566626ef50dd05 100644 (file)
@@ -100,7 +100,7 @@ public:
 
 
 
-  virtual void        MakeBranch(Option_t * opt =" ") {}
+  virtual void        MakeBranch(Option_t * /*opt =" "*/) {}
   virtual void        MakeTree(Option_t *) {}//skowron 
 
   virtual AliLoader*  MakeLoader(const char* topfoldername);//skowron   
index 18bb5480e1518cfbc3a0b4cd461f2b8913c67bb2..63c1954f0b857e9f295147200aeee3824e6ca722 100644 (file)
@@ -25,7 +25,8 @@
 
 ClassImp(AliALIFE)
 
-    AliALIFE::AliALIFE(const char* file1, const char* file2)
+
+AliALIFE::AliALIFE(const char* file1, const char* file2)
 {  
 // Constructor
     fNBodies = 0; 
@@ -40,7 +41,7 @@ ClassImp(AliALIFE)
     fDefaultVolume2 = "DEFAU2";    
 }
 
-    AliALIFE::AliALIFE()
+AliALIFE::AliALIFE()
 {
 // Default constructor
     fBodyFile   = "FlukaBody.inp";  
@@ -441,6 +442,13 @@ void AliALIFE::Finish()
     fclose(fFile2);    
 }
 
+void AliALIFE::Copy(AliALIFE&) const
+{
+    //
+    // Copy 
+    //
+    Fatal("Copy","Not implemented!\n");
+}
 
 
 
index cbda6ec48e3e73a168f074d3bd8a50842ab13b65..9216fb56494f6ca3eab0c711912ffb83a9c94acf 100644 (file)
@@ -12,9 +12,8 @@ class AliALIFE : public  TObject {
  public:
     AliALIFE(const char *name1, const char *name2);
     AliALIFE();    
-    AliALIFE(const AliALIFE &rh) {
-      // copy ctor requested by coding convention but not needed
-      Fatal("Copy constructor","not implemented");
+    AliALIFE(const AliALIFE &rhs) : TObject(rhs) {
+       rhs.Copy(*this);
     }
     virtual ~AliALIFE() {}
     void Cylinder(Float_t rmin, Float_t rmax,
@@ -66,12 +65,12 @@ class AliALIFE : public  TObject {
  private:
     void BodyHeader();
     void VolumeHeader();
-    AliALIFE & operator = (const AliALIFE &) {
-      // assignement operator requested by coding convention but not needed
-      return *this;
-    }
-    
+    void Copy(AliALIFE &alife) const;
 
+    AliALIFE & operator = (const AliALIFE &rhs) {
+       rhs.Copy(*this);
+       return (*this);
+    }
    ClassDef(AliALIFE,1)
 };
 #endif