diff options
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/CLCommandLine.hpp')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/src/CLCommandLine.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/CLCommandLine.hpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/CLCommandLine.hpp index e012b21a4c9..a80d9b87d75 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/src/CLCommandLine.hpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/CLCommandLine.hpp @@ -37,7 +37,7 @@ class CommandLine { virtual ~CommandLine () =default; void parse (int argc, char **argv); void help (std::ostream &os, int mode=0) const; - void addFilename (std::string fname) {_files.emplace_back(fname);} + void addFilename (const std::string &fname) {_files.emplace_back(fname);} bool singleDashGiven () const {return _singleDashParsed;} const std::vector<std::string>& filenames () const {return _files;} @@ -60,7 +60,7 @@ class CommandLine { struct CommandLineException : public MessageException { - CommandLineException (const std::string &msg) : MessageException(msg) {} + explicit CommandLineException (const std::string &msg) : MessageException(msg) {} }; } // namespace CL |