Changeset 18890


Ignore:
Timestamp:
06/24/17 10:58:32 (7 years ago)
Author:
tbretz
Message:
Propagate some variables as references where it makes sense.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventImp.h

    r14564 r18890  
    3434    // Configuration helper
    3535    EventImp &operator()(const std::function<int(const EventImp &)> &func) { return AssignFunction(func); }
    36     EventImp &operator()(const std::string str) { SetDescription(str); return *this; }
     36    EventImp &operator()(const std::string &str) { SetDescription(str); return *this; }
    3737    EventImp &operator()(const char *str) { SetDescription(str); return *this; }
    3838    EventImp &operator()(int state) { fAllowedStates.push_back(state); return *this; }
Note: See TracChangeset for help on using the changeset viewer.