diff options
Diffstat (limited to 'dviware/dvisvgm/src/TrueTypeFont.cpp')
-rw-r--r-- | dviware/dvisvgm/src/TrueTypeFont.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dviware/dvisvgm/src/TrueTypeFont.cpp b/dviware/dvisvgm/src/TrueTypeFont.cpp index 51056c36cc..408a00eede 100644 --- a/dviware/dvisvgm/src/TrueTypeFont.cpp +++ b/dviware/dvisvgm/src/TrueTypeFont.cpp @@ -127,7 +127,7 @@ void TrueTypeFont::writeWOFF (ostream &os) const { void TrueTypeFont::writeWOFF (const string &fname) const { - ofstream ofs(fname.c_str(), ios::binary); + ofstream ofs(fname, ios::binary); writeWOFF(ofs); } @@ -151,7 +151,7 @@ bool TrueTypeFont::writeWOFF2 (ostream &os) const { bool TrueTypeFont::writeWOFF2 (const string &fname) const { - ofstream ofs(fname.c_str(), ios::binary); + ofstream ofs(fname, ios::binary); return writeWOFF2(ofs); } @@ -172,4 +172,4 @@ uint32_t TrueTypeFont::TTFTableRecord::computeChecksum () const { while (startptr < endptr) sum += *startptr++; return sum; -}
\ No newline at end of file +} |