Changeset 173 for trunk/lib


Ignore:
Timestamp:
Aug 27, 2006, 9:01:52 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Changed post-increments to pre-increments.

Location:
trunk/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Directory.cc

    r149 r173  
    6262
    6363    SVN* svn=SVN::instance();
    64     for (list<string>::iterator i=entries.begin(); i!=entries.end(); i++)
     64    for (list<string>::iterator i=entries.begin(); i!=entries.end(); ++i)
    6565      if ((*i)!=string(".") && (*i)!=string("..") && (*i)!=string(".svn")) {
    6666        string fullpath(path_+'/'+(*i));
     
    8686  Directory::~Directory(void)
    8787  {
    88     for (NodeIterator i=daughters_.begin(); i!=daughters_.end(); i++)
     88    for (NodeIterator i=daughters_.begin(); i!=daughters_.end(); ++i)
    8989      delete *i;
    9090  }
     
    105105
    106106    // Directories give no contribution to statistics.
    107     for (NodeIterator i=daughters_.begin(); i!=daughters_.end(); i++)
     107    for (NodeIterator i=daughters_.begin(); i!=daughters_.end(); ++i)
    108108      stats_ += (*i)->parse(verbose);
    109109    return stats_;
     
    143143
    144144    // print html links to daughter nodes
    145     for (NodeConstIterator d = daughters_.begin(); d!=daughters_.end(); d++){
     145    for (NodeConstIterator d = daughters_.begin(); d!=daughters_.end(); ++d) {
    146146      if (dark)
    147147        os << (*d)->html_tablerow("dark");
  • trunk/lib/Stats.cc

    r149 r173  
    9898    }
    9999    else
    100       (*total)[rev]++;
     100      ++(*total)[rev];
    101101
    102102    std::vector<u_int>* code = &(code_[user]);
     
    110110    }
    111111    else if (lt == Parser::code)
    112       (*code)[rev]++;
     112      ++(*code)[rev];
    113113
    114114    std::vector<u_int>* comments = &(comments_[user]);
     
    122122    }
    123123    else if (lt == Parser::comment)
    124       (*comments)[rev]++;
     124      ++(*comments)[rev];
    125125  }
    126126
     
    145145      else
    146146        add(bi->author, bi->revision, *count);
    147       count++;
     147      ++count;
    148148    }
    149149   
     
    169169    size_t plotno=1;
    170170    std::stringstream ss;
    171     for (MapConstIter_ i= total_.begin(); i != total_.end(); i++) {
     171    for (MapConstIter_ i= total_.begin(); i != total_.end(); ++i) {
    172172      ss.str("");
    173173      ss << "set key height " << 2*plotno;
  • trunk/lib/utility.cc

    r163 r173  
    4242    }
    4343    int mode=0;
    44     for (u_int i=0; i<bits.length(); i++)
     44    for (u_int i=0; i<bits.length(); ++i)
    4545      switch (bits[i]) {
    4646          case 'r':
Note: See TracChangeset for help on using the changeset viewer.