diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-30 15:10:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-01 08:26:49 +0200 |
commit | 03516c505eced337149782a67b2ad98c246929b3 (patch) | |
tree | c499c7912cf65ebbf13c729782a93adc3f856a55 /idlc | |
parent | 9b3643820bf821c8be728ed20a8cb7ed05cabef2 (diff) |
loplugin:stringadd in helpcompiler..oox
Change-Id: I858870d883de10a673d7ce2798bda8c8f511cee5
Reviewed-on: https://gerrit.libreoffice.org/79889
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/options.cxx | 58 |
1 files changed, 28 insertions, 30 deletions
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx index 4f49cd202de4..bfd273ace1ba 100644 --- a/idlc/source/options.cxx +++ b/idlc/source/options.cxx @@ -371,33 +371,33 @@ bool Options::initOptions(std::vector< std::string > & rArgs) OString Options::prepareHelp() const { - OString help("\nusing: "); - help += m_program + " [-options] <file_1> ... <file_n> | @<filename> | -stdin\n"; - help += " <file_n> = file_n specifies one or more idl files.\n"; - help += " Only files with the extension '.idl' are valid.\n"; - help += " @<filename> = filename specifies the name of a command file.\n"; - help += " -stdin = read idl file from standard input.\n"; - help += " Options:\n"; - help += " -O<path> = path specifies the output directory.\n"; - help += " The generated output is a registry file with\n"; - help += " the same name as the idl input file (or 'stdin'\n"; - help += " for -stdin).\n"; - help += " -M<path> = path specifies the output directory for deps.\n"; - help += " Generate GNU make dependency files with the\n"; - help += " same name as the idl input file.\n"; - help += " -I<path> = path specifies a directory where include\n"; - help += " files will be searched by the preprocessor.\n"; - help += " Multiple directories can be combined with ';'.\n"; - help += " -D<name> = name defines a macro for the preprocessor.\n"; - help += " -C = generate complete type information, including\n"; - help += " documentation.\n"; - help += " -cid = check if identifiers fulfill the UNO naming\n"; - help += " requirements.\n"; - help += " -quiet = no output.\n"; - help += " -verbose = verbose output.\n"; - help += " -w = display warning messages.\n"; - help += " -we = treat warnings as errors.\n"; - help += " -h|-? = print this help message and exit.\n\n"; + OString help = "\nusing: " + + m_program + " [-options] <file_1> ... <file_n> | @<filename> | -stdin\n" + " <file_n> = file_n specifies one or more idl files.\n" + " Only files with the extension '.idl' are valid.\n" + " @<filename> = filename specifies the name of a command file.\n" + " -stdin = read idl file from standard input.\n" + " Options:\n" + " -O<path> = path specifies the output directory.\n" + " The generated output is a registry file with\n" + " the same name as the idl input file (or 'stdin'\n" + " for -stdin).\n" + " -M<path> = path specifies the output directory for deps.\n" + " Generate GNU make dependency files with the\n" + " same name as the idl input file.\n" + " -I<path> = path specifies a directory where include\n" + " files will be searched by the preprocessor.\n" + " Multiple directories can be combined with ';'.\n" + " -D<name> = name defines a macro for the preprocessor.\n" + " -C = generate complete type information, including\n" + " documentation.\n" + " -cid = check if identifiers fulfill the UNO naming\n" + " requirements.\n" + " -quiet = no output.\n" + " -verbose = verbose output.\n" + " -w = display warning messages.\n" + " -we = treat warnings as errors.\n" + " -h|-? = print this help message and exit.\n\n"; help += prepareVersion(); return help; @@ -405,9 +405,7 @@ OString Options::prepareHelp() const OString Options::prepareVersion() const { - OString version(m_program); - version += " Version 1.1\n\n"; - return version; + return m_program + " Version 1.1\n\n"; } |