diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-07-08 08:06:14 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-07-08 08:06:14 +0000 |
commit | ef00973c93c9ddf04b1951a0369b997814d1b1b5 (patch) | |
tree | 58948c1b1ef6e19f0ed9a99e2ee5c51083c289be /Build/source/texk/dvisvgm/dvisvgm-src/src/utility.cpp | |
parent | ddc0b443d002136928658824446de006d03c9c24 (diff) |
dvisvgm 2.4.1
git-svn-id: svn://tug.org/texlive/trunk@48164 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/utility.cpp')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/src/utility.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/utility.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/utility.cpp index 9517a6a1013..92fa6f3c65c 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/src/utility.cpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/utility.cpp @@ -124,7 +124,7 @@ int util::ilog10 (int n) { /** Returns the contents of a file. * @param[in] fname name/path of the file */ string util::read_file_contents (const string &fname) { - ifstream ifs(fname.c_str(), ios::binary); + ifstream ifs(fname, ios::binary); return string(istreambuf_iterator<char>(ifs.rdbuf()), istreambuf_iterator<char>()); } @@ -134,6 +134,6 @@ string util::read_file_contents (const string &fname) { * @param[in] start iterator pointing to the begin of the byte sequence * @param[in] end iterator pointing to the first byte after the byte sequence to write */ void util::write_file_contents (const string &fname, string::iterator start, string::iterator end) { - ofstream ofs(fname.c_str(), ios::binary); + ofstream ofs(fname, ios::binary); copy(start, end, ostream_iterator<char>(ofs)); } |