diff options
author | Norbert Preining <norbert@preining.info> | 2022-08-14 03:00:41 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-08-14 03:00:41 +0000 |
commit | e874d39878309e456c7ffe8d5fc6a91be571b50c (patch) | |
tree | 818c806809254f29f08c3e436a764cbdc566d59a /dviware/dvisvgm/src/MapLine.cpp | |
parent | b229ca426d9d7fee0e3c48c58a00ffcf3da66cb0 (diff) |
CTAN sync 202208140300
Diffstat (limited to 'dviware/dvisvgm/src/MapLine.cpp')
-rw-r--r-- | dviware/dvisvgm/src/MapLine.cpp | 6 |
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); |