summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-04-19 14:59:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-04-19 15:13:46 +0200
commit4707ee3212f410c3576dc663151aef5d01a123fc (patch)
tree30af609268d9137d77b9feaddb300933126b62bc /i18npool
parent0d85d88ee1a434687db9b67071c961ab000c99ce (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.cxx3
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;
}