Changeset 1305 for trunk


Ignore:
Timestamp:
Nov 15, 2010, 2:51:47 AM (10 years ago)
Author:
Peter Johansson
Message:

prefer passing const&

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Commitment.cc

    r978 r1305  
    3333
    3434
    35   Commitment::Commitment(std::string author, std::string date,
    36                          std::string msg, svn_revnum_t rev)
     35  Commitment::Commitment(const std::string& author, const std::string& date,
     36                         const std::string& msg, svn_revnum_t rev)
    3737    : author_(author), date_(date), msg_(msg), rev_(rev)
    3838  {
  • trunk/lib/Commitment.h

    r978 r1305  
    4848       \brief The contructor.
    4949    */
    50     Commitment(std::string author, std::string date, std::string msg,
    51                svn_revnum_t rev);
     50    Commitment(const std::string& author, const std::string& date,
     51               const std::string& msg, svn_revnum_t rev);
    5252
    5353    /**
Note: See TracChangeset for help on using the changeset viewer.