summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/src/MapLine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvisvgm/src/MapLine.cpp')
-rw-r--r--dviware/dvisvgm/src/MapLine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dviware/dvisvgm/src/MapLine.cpp b/dviware/dvisvgm/src/MapLine.cpp
index 531550788d..0c432cab23 100644
--- a/dviware/dvisvgm/src/MapLine.cpp
+++ b/dviware/dvisvgm/src/MapLine.cpp
@@ -37,7 +37,7 @@ MapLine::MapLine (istream &is) : MapLine() {
MapLine::MapLine (string str) : MapLine() {
- size_t pos = str.rfind('\n');
+ auto pos = str.rfind('\n');
if (pos != string::npos)
str = str.substr(0, pos);
parse(str.c_str());
@@ -75,9 +75,9 @@ bool MapLine::isDVIPSFormat (const char *line) const {
* @param[out] sfdname name of subfont definition
* @return true on success */
static bool split_fontname (string &fontname, string &sfdname) {
- size_t pos1; // index of first '@'
+ string::size_type pos1; // index of first '@'
if ((pos1 = fontname.find('@')) != string::npos && pos1 > 0) {
- size_t pos2; // index of second '@'
+ string::size_type pos2; // index of second '@'
if ((pos2 = fontname.find('@', pos1+1)) != string::npos && pos2 > pos1+1) {
sfdname = fontname.substr(pos1+1, pos2-pos1-1);
fontname = fontname.substr(0, pos1) + fontname.substr(pos2+1);