Changeset 142 for trunk/lib/SVNinfo.h


Ignore:
Timestamp:
Aug 8, 2006, 9:23:11 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #56. Changed pool usage to use subpools that are cleared after usages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SVNinfo.h

    r140 r142  
    5252    /// @brief Get the repository root URL.
    5353    ///
    54     std::string const
    55     repos_root_url(void) { return info_receiver_baton_.info->repos_root_URL; }
     54    inline const std::string& repos_root_url(void) const
     55    { return info_receiver_baton_.repos_root_url_; }
    5656
    5757    ///
    5858    /// @brief Get the author of the latest commit.
    5959    ///
    60     std::string last_changed_author(void) const
    61     { return info_receiver_baton_.info->last_changed_author; }
     60    inline const std::string& last_changed_author(void) const
     61    { return info_receiver_baton_.last_changed_author_; }
    6262
    6363    ///
    6464    /// @brief Get the revision of the latest commit.
    6565    ///
    66     svn_revnum_t last_changed_rev(void) const
    67     { return info_receiver_baton_.info->last_changed_rev; }
     66    inline svn_revnum_t last_changed_rev(void) const
     67    { return info_receiver_baton_.last_changed_rev_; }
    6868
    6969    ///
    7070    /// @brief Get the current revision of the item.
    7171    ///
    72     svn_revnum_t rev(void) const
    73     { return info_receiver_baton_.info->rev; }
     72    inline svn_revnum_t rev(void) const { return info_receiver_baton_.rev_; }
    7473
    7574
     
    9190    ///
    9291    struct info_receiver_baton {
    93       svn_info_t *info;
     92      // more info is available but we only use these
     93      std::string repos_root_url_;
     94      std::string last_changed_author_;
     95      svn_revnum_t last_changed_rev_;
     96      svn_revnum_t rev_;
    9497    } info_receiver_baton_ ;
    9598
Note: See TracChangeset for help on using the changeset viewer.