diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-04-19 14:59:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-04-19 15:13:46 +0200 |
commit | 4707ee3212f410c3576dc663151aef5d01a123fc (patch) | |
tree | 30af609268d9137d77b9feaddb300933126b62bc /i18npool | |
parent | 0d85d88ee1a434687db9b67071c961ab000c99ce (diff) |
Correctly pass implementation name to cppu::createSingleFactory
...this has been hidden by OServiceManager::createContentEnumeration wrapping its return
values in fresh XServiceInfo instances that report the right getImplementationName()
anyway. But other service manager implementations would cause code like
TransliterationImpl::loadBody (which iterates over createContentEnumeration() output,
checking for a specific getImplementationName()) to fail.
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/registerservices/registerservices.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/i18npool/source/registerservices/registerservices.cxx b/i18npool/source/registerservices/registerservices.cxx index fe488bfad4a3..c61780f18b74 100644 --- a/i18npool/source/registerservices/registerservices.cxx +++ b/i18npool/source/registerservices/registerservices.cxx @@ -592,7 +592,8 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL i18npool_component_getFactory( const sal_Cha aServiceNames.getArray()[0] = ::rtl::OUString::createFromAscii( pArr->pServiceNm ); xFactory = ::cppu::createSingleFactory( - pServiceManager, aServiceNames.getArray()[0], + pServiceManager, + ::rtl::OUString::createFromAscii( pArr->pImplementationNm ), *pArr->pFn, aServiceNames ); break; } |