Fork me on GitHub

Ignore:
Timestamp:
Feb 2, 2009, 12:26:00 PM (16 years ago)
Author:
Xavier Rouby
Message:

passing all objects as references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/Hector/include/H_Drift.h

    r3 r216  
    2525        /// Constructors and destructor
    2626        //@{
    27                         H_Drift():H_OpticalElement(DRIFT,0.,0.,0.) {init();}
     27                H_Drift():H_OpticalElement(DRIFT,0.,0.,0.) {init();}
    2828                H_Drift(const double s, const double l):H_OpticalElement(DRIFT,s,0.,l){init();}
    29                 H_Drift(const string nameE, const double s, const double l):H_OpticalElement(nameE,DRIFT,s,0.,l){init();}
    30                 ~H_Drift() { return; };
     29                H_Drift(const string& nameE, const double s, const double l):H_OpticalElement(nameE,DRIFT,s,0.,l){init();}
     30                ~H_Drift() { };
    3131        //@}
    3232                virtual void printProperties() const;
    3333                void init();
    34                         H_Drift* clone() const;
     34                H_Drift* clone() const;
    3535
    3636        protected:
Note: See TracChangeset for help on using the changeset viewer.