summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-16 10:15:56 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-16 18:11:39 +0200
commitcd5ee8c7d3f06fe78e6b3993845a3c2abc7cb72a (patch)
treed2baa21c109e05969a2d1d947d633c8772456cc2 /helpcompiler
parent741658c57c9653d58bd9abbe630f469ca7f64a6b (diff)
Simplify vector initialization in helpcompiler
Change-Id: I800fa0a6ac3b0dce1e0408858646dc7db5510623 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123688 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpLinker.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx
index f7acc30ecc7d..0aedf9b42692 100644
--- a/helpcompiler/source/HelpLinker.cxx
+++ b/helpcompiler/source/HelpLinker.cxx
@@ -856,11 +856,13 @@ bool compileExtensionHelp
{
bool bSuccess = true;
- std::vector<std::string> args;
- args.reserve(nXhpFileCount + 2);
- args.push_back(std::string("-mod"));
OString aOExtensionName = OUStringToOString( aExtensionName, osl_getThreadTextEncoding() );
- args.push_back(std::string(aOExtensionName.getStr()));
+ std::vector<std::string> args
+ {
+ std::string("-mod"),
+ std::string(aOExtensionName.getStr())
+ };
+ args.reserve(nXhpFileCount + 2);
for( sal_Int32 iXhp = 0 ; iXhp < nXhpFileCount ; ++iXhp )
{