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/CLCommandLine.cpp | |
parent | b229ca426d9d7fee0e3c48c58a00ffcf3da66cb0 (diff) |
CTAN sync 202208140300
Diffstat (limited to 'dviware/dvisvgm/src/CLCommandLine.cpp')
-rw-r--r-- | dviware/dvisvgm/src/CLCommandLine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dviware/dvisvgm/src/CLCommandLine.cpp b/dviware/dvisvgm/src/CLCommandLine.cpp index 17ba2c2d1f..e8b538e783 100644 --- a/dviware/dvisvgm/src/CLCommandLine.cpp +++ b/dviware/dvisvgm/src/CLCommandLine.cpp @@ -154,7 +154,7 @@ void CommandLine::parseLongOption (istream &is) { /** Returns all options that match the given long name. */ vector<Option*> CommandLine::lookupOption (const string &optname) const { vector<Option*> matches; - int len = optname.length(); + auto len = optname.length(); for (OptSectPair optsect : options()) { if (optsect.first->longName() == optname) { // exact match? matches.clear(); @@ -187,7 +187,7 @@ void CommandLine::help (ostream &os, int mode) const { string usage = _usage; int count=0; while (!usage.empty()) { - size_t pos = usage.find('\n'); + auto pos = usage.find('\n'); os << (count++ == 0 ? "Usage: " : " ") << PROGRAM_NAME << ' ' << usage.substr(0, pos) << '\n'; if (pos != string::npos) usage = usage.substr(pos+1); @@ -201,7 +201,7 @@ void CommandLine::help (ostream &os, int mode) const { unordered_map<Option*, pair<string,string>> linecols; size_t col1width=0; for (const OptSectPair &ospair : options()) { - size_t pos; + string::size_type pos; string line = ospair.first->helpline(); if ((pos = line.find('\t')) != string::npos) { linecols.emplace(ospair.first, pair<string,string>(line.substr(0, pos), line.substr(pos+1))); |