summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/src/SVGOutput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvisvgm/src/SVGOutput.cpp')
-rw-r--r--dviware/dvisvgm/src/SVGOutput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dviware/dvisvgm/src/SVGOutput.cpp b/dviware/dvisvgm/src/SVGOutput.cpp
index 6ba41f1c7d..013dd8f8f9 100644
--- a/dviware/dvisvgm/src/SVGOutput.cpp
+++ b/dviware/dvisvgm/src/SVGOutput.cpp
@@ -108,7 +108,7 @@ FilePath SVGOutput::filepath (int page, int numPages, const HashTriple &hashes)
string SVGOutput::expandFormatString (string str, int page, int numPages, const HashTriple &hashes) const {
string result;
while (!str.empty()) {
- size_t pos = str.find('%');
+ auto pos = str.find('%');
if (pos == string::npos) {
result += str;
str.clear();
@@ -150,7 +150,7 @@ string SVGOutput::expandFormatString (string str, int page, int numPages, const
result += oss.str();
break;
case '(': {
- size_t endpos = str.find(')', pos);
+ auto endpos = str.find(')', pos);
if (endpos == string::npos)
throw MessageException("missing ')' in filename pattern");
else if (endpos-pos-1 > 1) {