Changeset 589 for trunk/lib/Stats.h


Ignore:
Timestamp:
Apr 12, 2008, 6:53:33 PM (13 years ago)
Author:
Jari Häkkinen
Message:

Replace u_int with unsigned int.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.h

    r552 r589  
    5959    /// @brief adding \a n line(s) to \a user from \a revision to the stats
    6060    ///
    61     void add(const std::string& user, const u_int& revision,
    62              const LineTypeParser::line_type&, u_int n=1);
     61    void add(const std::string& user, const unsigned int& revision,
     62             const LineTypeParser::line_type&, unsigned int n=1);
    6363
    6464    ///
     
    7070    ///
    7171    ///
    72     u_int code(const std::string& user="all") const;
    73 
    74 
    75     ///
    76     ///
    77     ///
    78     u_int comments(const std::string& user="all") const;
    79 
    80     ///
    81     ///
    82     ///
    83     u_int empty(const std::string& user="all") const;
     72    unsigned int code(const std::string& user="all") const;
     73
     74
     75    ///
     76    ///
     77    ///
     78    unsigned int comments(const std::string& user="all") const;
     79
     80    ///
     81    ///
     82    ///
     83    unsigned int empty(const std::string& user="all") const;
    8484
    8585    ///
     
    9191    ///
    9292    ///
    93     u_int lines(const std::string& user="all") const;
     93    unsigned int lines(const std::string& user="all") const;
    9494
    9595    /**
     
    145145
    146146  protected:
    147     typedef std::map<std::string, std::vector<u_int> > Author2Vector;
     147    typedef std::map<std::string, std::vector<unsigned int> > Author2Vector;
    148148    typedef Author2Vector::iterator A2VIter;
    149149    typedef Author2Vector::const_iterator A2VConstIter;
     
    196196    std::set<std::string> authors_;
    197197
    198     const std::vector<u_int>& get_vector(const Author2Vector&,
     198    const std::vector<unsigned int>& get_vector(const Author2Vector&,
    199199                                         std::string user) const;
    200200  private:
    201     void accumulate(std::vector<u_int>& vec) const;
     201    void accumulate(std::vector<unsigned int>& vec) const;
    202202    virtual void do_parse(const std::string&)=0;
    203203   
     
    210210    void calc_comment_or_copy(void);
    211211    void calc_total(void);
    212     u_int get_back(const Author2Vector&, std::string user) const;
     212    unsigned int get_back(const Author2Vector&, std::string user) const;
    213213    void load(std::istream& is, Author2Vector& m);
    214214    void print(std::ostream& os, const Author2Vector& m) const;
Note: See TracChangeset for help on using the changeset viewer.