summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-07-20 12:39:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-20 22:00:09 +0200
commit09974c595adf81fde90dfa27ccac771d1f0ecfff (patch)
tree5870f1a2442851cf502cacf46f04fce48f375e79 /lingucomponent
parent181e26b346b0ec8d3d39e4fad2eea7169175aefe (diff)
this should be a single-instance component
regression from commit 3fbadfa1ad41a3477804c592e06caec708c05218 lingucomponent: create instances with uno constructors Change-Id: Ie53c56a88dc1c15178219b0098803586164837da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99038 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
index b50e0048689e..8c7d09ac66e6 100644
--- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
@@ -803,7 +803,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
lingucomponent_Hyphenator_get_implementation(
css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&)
{
- return cppu::acquire(new Hyphenator());
+ static rtl::Reference<Hyphenator> g_Instance(new Hyphenator());
+ g_Instance->acquire();
+ return static_cast<cppu::OWeakObject*>(g_Instance.get());
}