diff options
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)); } |