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/src/H_OpticalElement.cc

    r3 r216  
    2828
    2929/// called by the constructors
    30 void H_OpticalElement::init(const string nameE, const int typeE, const double s, const double k, const double l) {
     30void H_OpticalElement::init(const string& nameE, const int typeE, const double s, const double k, const double l) {
    3131        // this is called by the constructors
    3232        // must be in public section !
     
    5656}
    5757
    58 H_OpticalElement::H_OpticalElement(const string nameE, const int typeE, const double s, const double k, const double l) : element_aperture(new H_Aperture()) {
     58H_OpticalElement::H_OpticalElement(const string& nameE, const int typeE, const double s, const double k, const double l) : element_aperture(new H_Aperture()) {
    5959        init(nameE,typeE,s,k,l);
    6060}
    6161
    62 H_OpticalElement::H_OpticalElement(const string nameE, const int typeE, const double s, const double k, const double l, H_Aperture* the_app) : element_aperture(the_app->clone()) {
     62H_OpticalElement::H_OpticalElement(const string& nameE, const int typeE, const double s, const double k, const double l, H_Aperture* the_app) : element_aperture(the_app->clone()) {
    6363        init(nameE,typeE,s,k,l);
    6464}
Note: See TracChangeset for help on using the changeset viewer.