Changeset 140 for trunk/lib/SVN.h


Ignore:
Timestamp:
Aug 4, 2006, 2:12:11 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #56. Fixed freeing of resources on svn error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SVN.h

    r138 r140  
    3939
    4040  ///
    41   /// If something goes wrong in the use of the SVN class, a
    42   /// SVNException is thrown.
     41  /// If something goes wrong in the use of the different SVN classes,
     42  /// an SVNException is thrown.
    4343  ///
    4444  struct SVNException : public std::runtime_error
     
    106106    /// @see Subversion API documentation, SVNinfo
    107107    ///
    108     inline void client_info(const std::string& path,
    109                             svn_info_receiver_t receiver, void *baton)
    110     {
    111       if (svn_client_info(path.c_str(), NULL, NULL, receiver, baton, false,
    112                           context_, pool_))
    113         throw SVNException("repository: svn_client_info failed");
    114     }
     108    void client_info(const std::string& path, svn_info_receiver_t receiver,
     109                     void *baton);
    115110
    116111    ///
     
    140135    /// underlying subversion API calls.
    141136    ///
    142     /// @todo Make sure that the underlying constructor performs
    143     /// proper cleanup before throwing an exception.
    144     ///
    145137    static SVN* instance(void)
    146138    { if (!instance_) instance_=new SVN; return instance_; }
     
    172164    /// SVN::instance.
    173165    ///
    174     /// @todo Make sure that proper cleanup is performed before
    175     /// throwing an exception.
    176     ///
    177166    SVN(void);
    178167
     
    181170    ///
    182171    SVN(const SVN&);
     172
     173    ///
     174    /// Free resources when failing to reach end of constructor.
     175    ///
     176    void cleanup_failed_initialization(svn_error_t *err);
    183177
    184178    static SVN* instance_;
Note: See TracChangeset for help on using the changeset viewer.