summaryrefslogtreecommitdiffstats
path: root/helpcompiler
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-22 18:17:59 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-22 19:30:32 +0200
commit7b11cda2aa1f9bd069d81c30021448674a97ce30 (patch)
treead5956dd916057a2d4637290133b0c67ea55539f /helpcompiler
parentRevert part of "Simplify vector initialization in sdext" (diff)
downloadcore-7b11cda2aa1f9bd069d81c30021448674a97ce30.tar.gz
core-7b11cda2aa1f9bd069d81c30021448674a97ce30.zip
Revert "Simplify vector initialization in helpcompiler"
since it needs 2 allocations instead of one This reverts commit cd5ee8c7d3f06fe78e6b3993845a3c2abc7cb72a. Change-Id: I4958cacf747291c923b74fdfa49679e831d0ef1b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124070 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpLinker.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx
index 0aedf9b42692..f7acc30ecc7d 100644
--- a/helpcompiler/source/HelpLinker.cxx
+++ b/helpcompiler/source/HelpLinker.cxx
@@ -856,13 +856,11 @@ bool compileExtensionHelp
{
bool bSuccess = true;
- OString aOExtensionName = OUStringToOString( aExtensionName, osl_getThreadTextEncoding() );
- std::vector<std::string> args
- {
- std::string("-mod"),
- std::string(aOExtensionName.getStr())
- };
+ 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()));
for( sal_Int32 iXhp = 0 ; iXhp < nXhpFileCount ; ++iXhp )
{