Changeset 1201 for trunk


Ignore:
Timestamp:
Oct 4, 2010, 2:45:20 PM (10 years ago)
Author:
Peter Johansson
Message:

prefer operator+= rather than operator+. refs #475

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.cc

    r1200 r1201  
    212212      const SumVector& copy = copyright_stats()[*iter];
    213213
    214       // FIXME: we should use operator+=
    215       comment_or_copy_stats()[*iter] = comments + copy;
     214      comment_or_copy_stats()[*iter] = comments;
     215      comment_or_copy_stats()[*iter] += copy;
    216216    }
    217217
Note: See TracChangeset for help on using the changeset viewer.