Changeset 1217


Ignore:
Timestamp:
Oct 10, 2010, 2:46:37 AM (13 years ago)
Author:
Peter Johansson
Message:

update docs and remove third argument in cleanup_failed_init since the bool was not used in function. refs #371

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SVN.cc

    r1216 r1217  
    132132                              context_->cancel_baton, pool_))){
    133133      if (err->apr_err == SVN_ERR_WC_NOT_DIRECTORY)
    134         cleanup_failed_init(err, std::string(err->message), true);
     134        cleanup_failed_init(err, std::string(err->message));
    135135      cleanup_failed_init(err, "SVN: svn_wc_adm_open3 failed");
    136136    }
     
    173173
    174174
    175   void SVN::cleanup_failed_init(svn_error_t *err, const std::string& message,
    176                                 bool mute)
     175  void SVN::cleanup_failed_init(svn_error_t *err, const std::string& message)
    177176  {
    178177    assert(message.size()); // compatible with r1213
  • trunk/lib/SVN.h

    r1215 r1217  
    243243       @brief Free resources when svn API calls fail.
    244244
    245        This function will write an error message to stdout, free \a
    246        err and \a pool resources. If \a err or \a pool are a NULL
    247        pointers the function will do nothing with these resources. If
    248        \a mute is true, no error message is written.
    249 
    250        cleanup will throw a SVNException if \a message has
    251        length>0. The default bahaviour is to free resources and return
    252        normally.
     245       This function will free \a pool resources and throw an
     246       exception holding the \a message. If mute is false, the thrown
     247       exception also contains \a err.
     248
     249       \throw cleanup will throw a SVNException
    253250
    254251       @see SVNException
     
    267264       @see SVNException
    268265    */
    269     void cleanup_failed_init(svn_error_t *err, const std::string& message,
    270                              bool mute=false);
     266    void cleanup_failed_init(svn_error_t *err, const std::string& message);
    271267
    272268    static SVN* instance_;
Note: See TracChangeset for help on using the changeset viewer.