https://bugs.freedesktop.org/show_bug.cgi?id=78479

--- Comment #5 from Stephan Bergmann <[email protected]> ---
(In reply to comment #4)
> Surely this is easier to fix in the infrastructure than by everyone having
> to wrap DIY caches around UNO service instantiation =)

No.  There are legitimate cases for multiple instances of a single service. 
The UNO infrastructure cannot help with poor uses of services.

So if it turns out that com.sun.star.i18n.BreakIterator_zh must remain a UNO
service and cannot be changed to a UNO singleton, options to address this
specific problem at the callee rather than caller side might be to go from
cppu::createSingleFactory to cppu::createOneInstanceFactory (cf.
i18npool/source/registerservices/registerservices.cxx) or to share xdictionary
instancs across BreakIterator_zh instances.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to