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_BeamParticle.h

    r3 r216  
    4646                H_BeamParticle(const double, const double);
    4747                H_BeamParticle& operator=(const H_BeamParticle&);
    48                 ~H_BeamParticle() {if(stop_position) delete stop_position; if(!stop_element) delete stop_element; positions.clear(); return; }
     48                ~H_BeamParticle() {if(stop_position) delete stop_position; if(!stop_element) delete stop_element; positions.clear();}
    4949                //@}
    5050                /// Smears the (x,y) coordinates of the particle [\f$ \mu m \f$]
     
    112112                void propagate(const H_AbstractBeamLine *, const H_OpticalElement *);
    113113                /// Propagates the particle accross the beamline until a given element
    114                 void propagate(const H_AbstractBeamLine *, const string);
     114                void propagate(const H_AbstractBeamLine *, const string&);
    115115                /// Propagates the particle until the end of the beamline
    116116                void propagate(const H_AbstractBeamLine *);
Note: See TracChangeset for help on using the changeset viewer.