diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-12 22:34:04 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-20 20:04:21 +0200 |
| commit | 05bfa3d1fe9e274ed195647c6f74cb272f00c23d (patch) | |
| tree | 1372760463b288ff4e10ef7fb6e7414e202829f5 /src/util.h | |
| parent | 0338e7a7c19617f9ebb64ee02fbf3cceab8cf03f (diff) | |
Add and use new File class.master
It was always a bit troubling that fopen_boost wasn't exception safe,
and this also fixes a leak where load_ratings_list would never close
the ratings file.
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -115,16 +115,6 @@ extern int base64_decode (std::string const & in, unsigned char* out, int out_le extern boost::optional<boost::filesystem::path> relative_to_root (boost::filesystem::path root, boost::filesystem::path file); -/** @param p Path to open - * @param t mode flags, as for fopen(3) - * @return FILE pointer or 0 on error - * - * Apparently there is no way to create an ofstream using a UTF-8 - * filename under Windows. We are hence reduced to using fopen - * with this wrapper. - */ -extern FILE * fopen_boost (boost::filesystem::path, std::string); - extern std::string file_to_string (boost::filesystem::path, uintmax_t max_length = 1048576); /** @param key RSA private key in PEM format (optionally with -----BEGIN... / -----END...) |
