Changeset 713 for trunk


Ignore:
Timestamp:
Nov 28, 2008, 11:53:33 PM (13 years ago)
Author:
Peter Johansson
Message:

avoid copying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r693 r713  
    265265         << "</td><td>" << stats.empty(*i);
    266266      if (log.exist(*i)) {
    267         Commitment lc(log.latest_commit(*i));
     267        const Commitment& lc(log.latest_commit(*i));
    268268        os << "</td>" << "<td>" << trac_revision(lc.revision())
    269269           << "</td>" << "<td>" << Date(lc.date())(timefmt);
     
    293293    os << "<td>" << stats.comments() << "</td>\n";
    294294    os << "<td>" << stats.empty() << "</td>\n";
    295     Commitment lc(log.latest_commit());
     295    const Commitment& lc(log.latest_commit());
    296296    os << "<td>" << trac_revision(lc.revision()) << "</td>\n";
    297297    os << "<td>" << Date(lc.date())(timefmt)<< "</td>\n";
Note: See TracChangeset for help on using the changeset viewer.