• Matúš Kukan's avatar
    fdo#80927: css.office.Quickstart should be single-instance service. · 98bb53a5
    Matúš Kukan yazdı
    Incorrectly converted in a384b21c
    where SFX_IMPL_ONEINSTANCEFACTORY was used.
    
    AFAICS it's the first converted single-instance service which implements
    css::lang::XInitialization. That's kind of strange but can do its job.
    
    sbergman@redhat.com:  Three things were necessary in order to not call the
    ~ShutdownIcon code too late during exit now:
    
    * Move the relevant code from ~ShutdownIcon to ShutdownIcon::disposing.
    
    * Add a dummy <singleton name="com.sun.star.office.theQuickstart"/> so the
      service manager will eventually dispose the (single) instance.
    
    * In
      cppuhelper::ServiceManager::Data::Implementation::createInstanceWithArguments
      do not shortcut updateDisposeSingleton in that odd case of calling
      createInstanceWithArguments on an implementation that (effectively) is a
      singleton (as otherwise the service manager would still not dispose it).  It
      looks to me like that "return inst;" was an inadvertent leftover in
      874c4818 "Simplify service manager's tracking
      of singletons" and wasn't intended to serve some subtle purpose.
    
    Change-Id: Icd4d3168ec0bbb820b17ac321fe897ac9f9ce7fc
    98bb53a5
Adı
Son kayıt (commit)
Son güncelleme
..
access_control.cxx Loading commit data...
bootstrap.cxx Loading commit data...
compat.cxx Loading commit data...
component.cxx Loading commit data...
component_context.cxx Loading commit data...
defaultbootstrap.cxx Loading commit data...
exc_thrower.cxx Loading commit data...
factory.cxx Loading commit data...
findsofficepath.c Loading commit data...
gcc3.map Loading commit data...
implbase.cxx Loading commit data...
implbase_ex.cxx Loading commit data...
implementationentry.cxx Loading commit data...
interfacecontainer.cxx Loading commit data...
loadsharedlibcomponentfactory.hxx Loading commit data...
macro_expander.cxx Loading commit data...
macro_expander.hxx Loading commit data...
paths.cxx Loading commit data...
paths.hxx Loading commit data...
propertysetmixin.cxx Loading commit data...
propshlp.cxx Loading commit data...
servicemanager.cxx Loading commit data...
servicemanager.hxx Loading commit data...
shlib.cxx Loading commit data...
supportsservice.cxx Loading commit data...
tdmgr.cxx Loading commit data...
typemanager.cxx Loading commit data...
typemanager.hxx Loading commit data...
typeprovider.cxx Loading commit data...
unourl.cxx Loading commit data...
weak.cxx Loading commit data...