diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2018-11-29 21:34:51 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2018-11-30 08:37:00 +0100 |
commit | f8325dd3ea14a4766cd2bb7c0249338b59c2ed28 (patch) | |
tree | dbebabeb5cfd147b20e190aad62f6ed613ae27e9 /starmath/source/register.cxx | |
parent | 3b48c9452778cf822a8cd1defb614c1010d7b9f8 (diff) |
starmath: create XMLOasisSettingsImporter instances with an uno constructor
Change-Id: I92c8991baf10fde574d06ab0870bbb26a7632e65
Reviewed-on: https://gerrit.libreoffice.org/64284
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'starmath/source/register.cxx')
-rw-r--r-- | starmath/source/register.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/starmath/source/register.cxx b/starmath/source/register.cxx index e3bfe9f79e5b..3e06241484c3 100644 --- a/starmath/source/register.cxx +++ b/starmath/source/register.cxx @@ -46,14 +46,7 @@ SAL_DLLPUBLIC_EXPORT void* sm_component_getFactory( const sal_Char* pImplementat Reference< XSingleServiceFactory > xFactory ; Reference< XMultiServiceFactory > xServiceManager( static_cast< XMultiServiceFactory* >( pServiceManager ) ) ; - if (SmXMLImportSettings_getImplementationName().equalsAscii(pImplementationName)) - { - xFactory = ::cppu::createSingleFactory( xServiceManager, - SmXMLImportSettings_getImplementationName(), - SmXMLImportSettings_createInstance, - SmXMLImportSettings_getSupportedServiceNames() ); - } - else if( SmDocument_getImplementationName().equalsAscii( pImplementationName )) + if (SmDocument_getImplementationName().equalsAscii(pImplementationName)) { xFactory = ::sfx2::createSfxModelFactory( xServiceManager, SmDocument_getImplementationName(), |