Changeset 1286 for trunk


Ignore:
Timestamp:
Nov 9, 2010, 2:29:48 AM (11 years ago)
Author:
Peter Johansson
Message:

reuse Date object within the functionprint_blame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r1239 r1286  
    174174    while (blame.valid()) {
    175175      std::string color;
     176      Date date(blame.date());
    176177      if (using_dates)
    177         color = hex(static_cast<int>(k*Date(blame.date()).seconds()+m),2);
     178        color = hex(static_cast<int>(k*date.seconds()+m),2);
    178179      else
    179180        color = hex(static_cast<int>(k*blame.revision()+m),2);
     
    185186         << "</font></td>\n<td class=\"date\"><font color=\"#" << color
    186187         << color << color << "\">" ;
    187       hs << Date(blame.date())("%d %b %y");
     188      hs << date("%d %b %y");
    188189      os << "</font></td>\n<td class=\"author\">";
    189190      const std::string& author_color =
Note: See TracChangeset for help on using the changeset viewer.