this should be a single-instance component
regression from
commit 3fbadfa1ad
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>
This commit is contained in:
@@ -803,7 +803,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
|||||||
lingucomponent_Hyphenator_get_implementation(
|
lingucomponent_Hyphenator_get_implementation(
|
||||||
css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&)
|
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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user