MCPcopy Create free account
hub / github.com/KDE/kdevelop / diffCleanup

Function diffCleanup

plugins/subversion/3rdparty/kdevsvncpp/client_diff.cpp:61–77  ·  view source on GitHub ↗

* closes and deletes temporary files that diff has been using */

Source from the content-addressed store, hash-verified

59 * closes and deletes temporary files that diff has been using
60 */
61 static void
62 diffCleanup(apr_file_t * outfile, const char * outfileName,
63 apr_file_t * errfile, const char * errfileName,
64 apr_pool_t *pool)
65 {
66 if (outfile != nullptr)
67 apr_file_close(outfile);
68
69 if (errfile != nullptr)
70 apr_file_close(errfile);
71
72 if (outfileName != nullptr)
73 svn_error_clear(svn_io_remove_file(outfileName, pool));
74
75 if (errfileName != nullptr)
76 svn_error_clear(svn_io_remove_file(errfileName, pool));
77 }
78
79 std::string
80 Client::diff(const Path & tmpPath, const Path & path,

Callers 1

diffMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected