summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-01 13:41:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-02 18:23:45 +0200
commit6783afe24d43a1bfd0b0239d3ebb97046177111d (patch)
tree03c717a9a6353bafb2fe2b278a307fddf75f494f /helpcompiler
parent3d9bf9eea5803184da8e5e11477b6eb2f55aff3f (diff)
no need to allocate these on the heap
Change-Id: Ie11353c8711e970cc20059227d8283c79e4b126d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116586 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpLinker.cxx4
-rw-r--r--helpcompiler/source/HelpLinker_main.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx
index b272d2c010e5..f7acc30ecc7d 100644
--- a/helpcompiler/source/HelpLinker.cxx
+++ b/helpcompiler/source/HelpLinker.cxx
@@ -881,8 +881,8 @@ bool compileExtensionHelp
xmlSetStructuredErrorFunc( nullptr, StructuredXMLErrorFunction );
try
{
- std::unique_ptr<HelpLinker> pHelpLinker(new HelpLinker());
- pHelpLinker->main( args, &aStdStrExtensionPath, &aStdStrDestination, &aOfficeHelpPath );
+ HelpLinker aHelpLinker;
+ aHelpLinker.main( args, &aStdStrExtensionPath, &aStdStrDestination, &aOfficeHelpPath );
}
catch( const HelpProcessingException& e )
{
diff --git a/helpcompiler/source/HelpLinker_main.cxx b/helpcompiler/source/HelpLinker_main.cxx
index 5c8fe8807336..75ac9f3d3ba1 100644
--- a/helpcompiler/source/HelpLinker_main.cxx
+++ b/helpcompiler/source/HelpLinker_main.cxx
@@ -30,8 +30,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
args.push_back(std::string(argv[i]));
try
{
- std::unique_ptr<HelpLinker> pHelpLinker(new HelpLinker());
- pHelpLinker->main(args);
+ HelpLinker aHelpLinker;
+ aHelpLinker.main(args);
}
catch (const HelpProcessingException& e)
{